mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
1e09e64a73
Since testresources declares `Requires-Dist: pbr (>=1.8)` and imports `pbr.version`, any user of testresources also needs to have pbr. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
27 lines
623 B
Nix
27 lines
623 B
Nix
{ lib, buildPythonPackage, fetchPypi, python
|
|
, pbr, fixtures, testtools }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "testresources";
|
|
version = "2.0.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "ee9d1982154a1e212d4e4bac6b610800bfb558e4fb853572a827bc14a96e4417";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pbr ];
|
|
|
|
checkInputs = [ fixtures testtools ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m testtools.run discover
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Pyunit extension for managing expensive test resources";
|
|
homepage = https://launchpad.net/testresources;
|
|
license = licenses.bsd2;
|
|
};
|
|
}
|