summary refs log tree commit diff
path: root/pkgs/development/python-modules/setuptoolsdarcs/default.nix
blob: d696a5be08fa1f4c1c167339637f02975cd42098 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
  };
}