nixpkgs/pkgs/development/python-modules/subunit/default.nix
2019-08-28 11:07:32 +00:00

23 lines
431 B
Nix

{ buildPythonPackage
, pkgs
, testtools
, testscenarios
}:
buildPythonPackage {
name = pkgs.subunit.name;
src = pkgs.subunit.src;
propagatedBuildInputs = [ testtools ];
checkInputs = [ testscenarios ];
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = [ pkgs.check pkgs.cppunit ];
patchPhase = ''
sed -i 's/version=VERSION/version="${pkgs.subunit.version}"/' setup.py
'';
meta = pkgs.subunit.meta;
}