pythonPackages.singledispatch: move expression (#44654)
This commit is contained in:
parent
a81b29ac0b
commit
74f0282d65
|
@ -0,0 +1,27 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "singledispatch";
|
||||
version = "3.4.0.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5b06af87df13818d14f08a028e42f566640aef80805c3b50c5056b086e3c2b9c";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
# pypi singledispatch tarbal does not contain tests
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "This library brings functools.singledispatch from Python 3.4 to Python 2.6-3.3.";
|
||||
homepage = https://docs.python.org/3/library/functools.html;
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
|
@ -501,6 +501,8 @@ in {
|
|||
|
||||
simpleeval = callPackage ../development/python-modules/simpleeval { };
|
||||
|
||||
singledispatch = callPackage ../development/python-modules/singledispatch { };
|
||||
|
||||
sip = callPackage ../development/python-modules/sip { };
|
||||
|
||||
sortedcontainers = callPackage ../development/python-modules/sortedcontainers { };
|
||||
|
@ -2549,21 +2551,6 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
singledispatch = buildPythonPackage rec {
|
||||
name = "singledispatch-3.4.0.3";
|
||||
|
||||
propagatedBuildInputs = with self; [ six ];
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/s/singledispatch/${name}.tar.gz";
|
||||
sha256 = "5b06af87df13818d14f08a028e42f566640aef80805c3b50c5056b086e3c2b9c";
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = https://docs.python.org/3/library/functools.html;
|
||||
};
|
||||
};
|
||||
|
||||
functools32 = if isPy3k then null else buildPythonPackage rec {
|
||||
name = "functools32-${version}";
|
||||
version = "3.2.3-2";
|
||||
|
|
Loading…
Reference in New Issue