From e77f62df0fcbc118c539501a0b286d09e8bd8897 Mon Sep 17 00:00:00 2001 From: wisut hantanong Date: Fri, 28 Jul 2017 14:32:38 +0700 Subject: [PATCH] python.pkgs.funcsigs: move to separate expression --- .../python-modules/funcsigs/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +---------------- 2 files changed, 23 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/funcsigs/default.nix diff --git a/pkgs/development/python-modules/funcsigs/default.nix b/pkgs/development/python-modules/funcsigs/default.nix new file mode 100644 index 00000000000..67ee9779073 --- /dev/null +++ b/pkgs/development/python-modules/funcsigs/default.nix @@ -0,0 +1,22 @@ +{ stdenv, buildPythonPackage, fetchPypi +, unittest2 }: + +buildPythonPackage rec { + pname = "funcsigs"; + version = "1.0.2"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7"; + }; + + buildInputs = [ unittest2 ]; + + meta = with stdenv.lib; { + description = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+"; + homepage = "https://github.com/aliles/funcsigs"; + maintainers = with maintainers; [ garbas ]; + license = licenses.asl20; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 239579bb59e..e78698438f4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -609,25 +609,7 @@ in { }; } else null; - funcsigs = buildPythonPackage rec { - name = "funcsigs-1.0.2"; - - src = pkgs.fetchurl { - url = "mirror://pypi/f/funcsigs/${name}.tar.gz"; - sha256 = "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7"; - }; - - buildInputs = with self; [ - unittest2 - ]; - - meta = with pkgs.stdenv.lib; { - description = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+"; - homepage = "https://github.com/aliles/funcsigs"; - maintainers = with maintainers; [ garbas ]; - license = licenses.asl20; - }; - }; + funcsigs = callPackage ../development/python-modules/funcsigs { }; APScheduler = callPackage ../development/python-modules/APScheduler { };