1{ lib 2, buildPythonPackage 3, fetchPypi 4, darcsver 5}: 6 7buildPythonPackage rec { 8 pname = "setuptools_darcs"; 9 version = "1.2.11"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "1wsh0g1fn10msqk87l5jrvzs0yj5mp6q9ld3gghz6zrhl9kqzdn1"; 14 }; 15 16 # In order to break the dependency on darcs -> ghc, we don't add 17 # darcs as a propagated build input. 18 propagatedBuildInputs = [ darcsver ]; 19 20 # ugly hack to specify version that should otherwise come from darcs 21 patchPhase = '' 22 substituteInPlace setup.py --replace "name=PKG" "name=PKG, version='${version}'" 23 ''; 24 25 meta = with lib; { 26 description = "Setuptools plugin for the Darcs version control system"; 27 homepage = "http://allmydata.org/trac/setuptools_darcs"; 28 license = licenses.bsd0; 29 }; 30}