2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python
|
|
|
|
, pbr, fixtures, testtools }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testresources";
|
|
|
|
version = "2.0.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "ee9d1982154a1e212d4e4bac6b610800bfb558e4fb853572a827bc14a96e4417";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pbr ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ fixtures testtools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|