git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.funcsigs: move to separate expression
commite77f62df0fcbc118c539501a0b286d09e8bd8897 authorwisut hantanong <wizzup@gmail.com> dateFri 28 Jul 2017, 14:32 (9 years ago) parentf970ee8
2 files changed+23−19
pkgs/development/python-modules/funcsigs/default.nix+22 pkgs/top-level/python-packages.nix+1−19
pkgs/development/python-modules/funcsigs/default.nixnew file+22
@@ -0,0 +1,22 @@
1+{ stdenv, buildPythonPackage, fetchPypi
2+, unittest2 }:
3+
4+buildPythonPackage rec {
5+ pname = "funcsigs";
6+ version = "1.0.2";
7+ name = "${pname}-${version}";
8+
9+ src = fetchPypi {
10+ inherit pname version;
11+ sha256 = "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7";
12+ };
13+
14+ buildInputs = [ unittest2 ];
15+
16+ meta = with stdenv.lib; {
17+ description = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+";
18+ homepage = "https://github.com/aliles/funcsigs";
19+ maintainers = with maintainers; [ garbas ];
20+ license = licenses.asl20;
21+ };
22+}
pkgs/top-level/python-packages.nix+1−19
@@ -609,25 +609,7 @@ in {
609609 };
610610 } else null;
611611
612− funcsigs = buildPythonPackage rec {
613− name = "funcsigs-1.0.2";
614−
615− src = pkgs.fetchurl {
616− url = "mirror://pypi/f/funcsigs/${name}.tar.gz";
617− sha256 = "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7";
618− };
619−
620− buildInputs = with self; [
621− unittest2
622− ];
623−
624− meta = with pkgs.stdenv.lib; {
625− description = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+";
626− homepage = "https://github.com/aliles/funcsigs";
627− maintainers = with maintainers; [ garbas ];
628− license = licenses.asl20;
629− };
630− };
612+ funcsigs = callPackage ../development/python-modules/funcsigs { };
631613
632614 APScheduler = callPackage ../development/python-modules/APScheduler { };
633615