mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 19:15:39 +00:00
23 lines
435 B
Nix
23 lines
435 B
Nix
{ buildPythonPackage
|
|
, pkgs
|
|
, testtools
|
|
, testscenarios
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
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;
|
|
|
|
}
|