about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-04-06 15:13:18 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2018-04-08 11:36:05 +0200
commitb1ef2e596fde11fe73441d37f4d0f7e6999006df (patch)
treec4ddb94d2b8e7787b5bfe8235295a8f2eef7c96f
parent2bf437f0c8fafdbc3b409cf5ee57cffef29054aa (diff)
downloadnixlib-b1ef2e596fde11fe73441d37f4d0f7e6999006df.tar
nixlib-b1ef2e596fde11fe73441d37f4d0f7e6999006df.tar.gz
nixlib-b1ef2e596fde11fe73441d37f4d0f7e6999006df.tar.bz2
nixlib-b1ef2e596fde11fe73441d37f4d0f7e6999006df.tar.lz
nixlib-b1ef2e596fde11fe73441d37f4d0f7e6999006df.tar.xz
nixlib-b1ef2e596fde11fe73441d37f4d0f7e6999006df.tar.zst
nixlib-b1ef2e596fde11fe73441d37f4d0f7e6999006df.zip
python.pkgs.vobject: move expression
-rw-r--r--pkgs/development/python-modules/vobject/default.nix24
-rw-r--r--pkgs/top-level/python-packages.nix27
2 files changed, 25 insertions, 26 deletions
diff --git a/pkgs/development/python-modules/vobject/default.nix b/pkgs/development/python-modules/vobject/default.nix
new file mode 100644
index 000000000000..8d52f65d498e
--- /dev/null
+++ b/pkgs/development/python-modules/vobject/default.nix
@@ -0,0 +1,24 @@
+{ lib, buildPythonPackage, fetchPypi, isPyPy, python, dateutil }:
+
+buildPythonPackage rec {
+  version = "0.9.5";
+  pname = "vobject";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0f56cae196303d875682b9648b4bb43ffc769d2f0f800958e0a506af867b1243";
+  };
+
+  disabled = isPyPy;
+
+  propagatedBuildInputs = [ dateutil ];
+
+  checkPhase = "${python.interpreter} tests.py";
+
+  meta = with lib; {
+    description = "Module for reading vCard and vCalendar files";
+    homepage = http://eventable.github.io/vobject/;
+    license = licenses.asl20;
+    maintainers = with maintainers; [ ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index f458b58b0b28..0074f05d433f 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -10553,32 +10553,7 @@ in {
     };
   };
 
-
-
-  vobject = buildPythonPackage rec {
-    version = "0.9.5";
-    name = "vobject-${version}";
-
-    src = pkgs.fetchFromGitHub {
-      owner = "eventable";
-      repo = "vobject";
-      sha256 = "1f5lw9kpssr66bdirkjba3izbnm68p8pd47546m5yl4c7x76s1ld";
-      rev = version;
-    };
-
-    disabled = isPyPy;
-
-    propagatedBuildInputs = with self; [ dateutil ];
-
-    checkPhase = "${python.interpreter} tests.py";
-
-    meta = {
-      description = "Module for reading vCard and vCalendar files";
-      homepage = http://eventable.github.io/vobject/;
-      license = licenses.asl20;
-      maintainers = with maintainers; [ ];
-    };
-  };
+  vobject = callPackage ../development/python-modules/vobject { };
 
   pycarddav = buildPythonPackage rec {
     version = "0.7.0";