summary refs log tree commit diff
path: root/pkgs/development/python-modules/ecpy
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-02-22 01:36:10 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-02-22 01:51:53 +0100
commit9b37f0a06d9f33765e5759d00caf7d0fd3cc2782 (patch)
treedad8883b70907628219051d5d9304616898cab2c /pkgs/development/python-modules/ecpy
parent0862ca375c97d30aba8bb724f4f4358eba73de68 (diff)
pythonPackages.ecpy: disable for python 2
setup.py specifies
    python_requires='>=3'
Diffstat (limited to 'pkgs/development/python-modules/ecpy')
-rw-r--r--pkgs/development/python-modules/ecpy/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/ecpy/default.nix b/pkgs/development/python-modules/ecpy/default.nix
index 84830e7f2b834..277a5cece5677 100644
--- a/pkgs/development/python-modules/ecpy/default.nix
+++ b/pkgs/development/python-modules/ecpy/default.nix
@@ -1,12 +1,13 @@
-{ stdenv, fetchPypi, buildPythonPackage, hidapi
+{ stdenv, fetchPypi, buildPythonPackage, isPy3k, hidapi
 , pycrypto, pillow, protobuf, future, ecpy
 }:
 
 buildPythonPackage rec {
-  name = "${pname}-${version}";
   pname = "ECPy";
   version = "0.8.3";
 
+  disabled = !isPy3k;
+
   src = fetchPypi {
     inherit pname version;
     sha256 = "ef3d95419d53368f52fb7d4b883b8df0dfc2dd19a76243422d24981c3e5f27bd";