summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-06-07 17:13:39 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2017-06-07 17:29:47 +0200
commite249d6e8ce627e24ff2880350007a218fcf7b269 (patch)
treea904647b403fd3f3378b5d8035626f309adc6282
parent66963789118f131deae8554a9b3e7ab527654e9d (diff)
downloadnixlib-e249d6e8ce627e24ff2880350007a218fcf7b269.tar
nixlib-e249d6e8ce627e24ff2880350007a218fcf7b269.tar.gz
nixlib-e249d6e8ce627e24ff2880350007a218fcf7b269.tar.bz2
nixlib-e249d6e8ce627e24ff2880350007a218fcf7b269.tar.lz
nixlib-e249d6e8ce627e24ff2880350007a218fcf7b269.tar.xz
nixlib-e249d6e8ce627e24ff2880350007a218fcf7b269.tar.zst
nixlib-e249d6e8ce627e24ff2880350007a218fcf7b269.zip
python.pkgs.characteristic: 14.1.0 -> 14.3.0
-rw-r--r--pkgs/development/python-modules/characteristic/default.nix22
-rw-r--r--pkgs/top-level/python-packages.nix15
2 files changed, 23 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/characteristic/default.nix b/pkgs/development/python-modules/characteristic/default.nix
new file mode 100644
index 000000000000..c44989ab5b7e
--- /dev/null
+++ b/pkgs/development/python-modules/characteristic/default.nix
@@ -0,0 +1,22 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pytest
+}:
+
+buildPythonPackage rec {
+  pname = "characteristic";
+  version = "14.3.0";
+  name = "${pname}-${version}";
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "ded68d4e424115ed44e5c83c2a901a0b6157a959079d7591d92106ffd3ada380";
+  };
+
+  checkInputs = [ pytest ];
+
+  meta = {
+    description = "Python attributes without boilerplate";
+    homepage = https://characteristic.readthedocs.org;
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 4bd03714065a..b54f34b91337 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -3477,20 +3477,7 @@ in {
 
   certifi = callPackage ../development/python-modules/certifi { };
 
-  characteristic = buildPythonPackage rec {
-    name = "characteristic-14.1.0";
-    src = pkgs.fetchurl {
-      url = "mirror://pypi/c/characteristic/${name}.tar.gz";
-      sha256 = "91e254948180678dd69e6143202b4686f2fa47cce136936079bb4d9a3b82419d";
-    };
-
-    buildInputs = with self; [ self.pytest ];
-
-    meta = {
-      description = "Python attributes without boilerplate";
-      homepage = https://characteristic.readthedocs.org;
-    };
-  };
+  characteristic = callPackage ../development/python-modules/characteristic { };
 
   # This package is no longer actively maintained and can be removed if it becomes broken.
   cgkit = buildPythonPackage rec {