2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 18:14:28 +01:00
|
|
|
, 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}'"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-26 18:14:28 +01:00
|
|
|
description = "Setuptools plugin for the Darcs version control system";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://allmydata.org/trac/setuptools_darcs";
|
2018-10-26 18:14:28 +01:00
|
|
|
license = licenses.bsd0;
|
|
|
|
};
|
|
|
|
}
|