about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorwisut hantanong <wizzup@gmail.com>2017-07-28 15:58:39 +0700
committerwisut hantanong <wizzup@gmail.com>2017-07-28 16:07:38 +0700
commitf1ef53286d4e06ee3c53316ece702f9f5f0a3feb (patch)
tree2843cf20b5e5a3e4f08021fd2c7efd9cae5a8de6 /pkgs
parentb01adce061a5e446549bddecb1c75d2e422867e7 (diff)
downloadnixlib-f1ef53286d4e06ee3c53316ece702f9f5f0a3feb.tar
nixlib-f1ef53286d4e06ee3c53316ece702f9f5f0a3feb.tar.gz
nixlib-f1ef53286d4e06ee3c53316ece702f9f5f0a3feb.tar.bz2
nixlib-f1ef53286d4e06ee3c53316ece702f9f5f0a3feb.tar.lz
nixlib-f1ef53286d4e06ee3c53316ece702f9f5f0a3feb.tar.xz
nixlib-f1ef53286d4e06ee3c53316ece702f9f5f0a3feb.tar.zst
nixlib-f1ef53286d4e06ee3c53316ece702f9f5f0a3feb.zip
python.pkgs.asn1ate: move to separate expression
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/asn1ate/default.nix24
-rw-r--r--pkgs/top-level/python-packages.nix22
2 files changed, 25 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/asn1ate/default.nix b/pkgs/development/python-modules/asn1ate/default.nix
new file mode 100644
index 000000000000..ce07c2376245
--- /dev/null
+++ b/pkgs/development/python-modules/asn1ate/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, buildPythonPackage, fetchFromGitHub
+, pyparsing }:
+
+buildPythonPackage rec {
+  pname = "asn1ate";
+  date = "20160810";
+  name = "${pname}-unstable-${date}";
+
+  src = fetchFromGitHub {
+    sha256 = "04pddr1mh2v9qq8fg60czwvjny5qwh4nyxszr3qc4bipiiv2xk9w";
+    rev = "c56104e8912400135509b584d84423ee05a5af6b";
+    owner = "kimgr";
+    repo = pname;
+  };
+
+  propagatedBuildInputs = [ pyparsing ];
+
+  meta = with stdenv.lib; {
+    description = "Python library for translating ASN.1 into other forms";
+    license = licenses.bsd3;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ leenaars ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index d46838dddbf6..e87630212cef 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -650,27 +650,7 @@ in {
 
   async-timeout = callPackage ../development/python-modules/async_timeout { };
 
- asn1ate = buildPythonPackage rec {
-  pname = "asn1ate";
-  date = "20160810";
-  name = "${pname}-unstable-${date}";
-
-  src = pkgs.fetchFromGitHub {
-    sha256 = "04pddr1mh2v9qq8fg60czwvjny5qwh4nyxszr3qc4bipiiv2xk9w";
-    rev = "c56104e8912400135509b584d84423ee05a5af6b";
-    owner = "kimgr";
-    repo = pname;
-  };
-
-  propagatedBuildInputs = with self; [ pyparsing ];
-
-  meta = with stdenv.lib; {
-    description = "Python library for translating ASN.1 into other forms";
-    license = licenses.bsd3;
-    platforms = platforms.linux;
-    maintainers = with maintainers; [ leenaars ];
-  };
-};
+  asn1ate = callPackage ../development/python-modules/asn1ate { };
 
   atomiclong = buildPythonPackage rec {
     version = "0.1.1";