From f1ef53286d4e06ee3c53316ece702f9f5f0a3feb Mon Sep 17 00:00:00 2001 From: wisut hantanong Date: Fri, 28 Jul 2017 15:58:39 +0700 Subject: [PATCH] python.pkgs.asn1ate: move to separate expression --- .../python-modules/asn1ate/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 22 +---------------- 2 files changed, 25 insertions(+), 21 deletions(-) create mode 100644 pkgs/development/python-modules/asn1ate/default.nix 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";