depot/third_party/nixpkgs/pkgs/development/python-modules/setuptoolsdarcs/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
786 B
Nix

{ 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;
};
}