pythonPackages.setuptoolsDarcs: refactor move to python-modules
This commit is contained in:
parent
da5c908593
commit
0c5eced78d
30
pkgs/development/python-modules/setuptoolsdarcs/default.nix
Normal file
30
pkgs/development/python-modules/setuptoolsdarcs/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, darcsver
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "setuptools_darcs";
|
||||||
|
version = "1.2.11";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1wsh0g1fn10msqk87l5jrvzs0yj5mp6q9ld3gghz6zrhl9kqzdn1";
|
||||||
|
};
|
||||||
|
|
||||||
|
# In order to break the dependency on darcs -> ghc, we don't add
|
||||||
|
# darcs as a propagated build input.
|
||||||
|
propagatedBuildInputs = [ darcsver ];
|
||||||
|
|
||||||
|
# ugly hack to specify version that should otherwise come from darcs
|
||||||
|
patchPhase = ''
|
||||||
|
substituteInPlace setup.py --replace "name=PKG" "name=PKG, version='${version}'"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Setuptools plugin for the Darcs version control system";
|
||||||
|
homepage = http://allmydata.org/trac/setuptools_darcs;
|
||||||
|
license = licenses.bsd0;
|
||||||
|
};
|
||||||
|
}
|
@ -3708,30 +3708,7 @@ in {
|
|||||||
|
|
||||||
setuptools_scm = callPackage ../development/python-modules/setuptools_scm { };
|
setuptools_scm = callPackage ../development/python-modules/setuptools_scm { };
|
||||||
|
|
||||||
setuptoolsDarcs = buildPythonPackage rec {
|
setuptoolsDarcs = callPackage ../development/python-modules/setuptoolsdarcs { };
|
||||||
name = "setuptools_darcs-${version}";
|
|
||||||
version = "1.2.11";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/s/setuptools_darcs/${name}.tar.gz";
|
|
||||||
sha256 = "1wsh0g1fn10msqk87l5jrvzs0yj5mp6q9ld3gghz6zrhl9kqzdn1";
|
|
||||||
};
|
|
||||||
|
|
||||||
# In order to break the dependency on darcs -> ghc, we don't add
|
|
||||||
# darcs as a propagated build input.
|
|
||||||
propagatedBuildInputs = with self; [ darcsver ];
|
|
||||||
|
|
||||||
# ugly hack to specify version that should otherwise come from darcs
|
|
||||||
patchPhase = ''
|
|
||||||
substituteInPlace setup.py --replace "name=PKG" "name=PKG, version='${version}'"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Setuptools plugin for the Darcs version control system";
|
|
||||||
homepage = http://allmydata.org/trac/setuptools_darcs;
|
|
||||||
license = "BSD";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
setuptoolsTrial = buildPythonPackage rec {
|
setuptoolsTrial = buildPythonPackage rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user