depot/third_party/nixpkgs/pkgs/development/python-modules/testrepository/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

37 lines
756 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, testtools
, testresources
, pbr
, subunit
, fixtures
, python
}:
buildPythonPackage rec {
pname = "testrepository";
version = "0.0.21";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-Nor89+CQs8aIvddUol9kvDFOUSuBb4xxufn8F9w3o9k=";
};
nativeCheckInputs = [ testresources ];
buildInputs = [ pbr ];
propagatedBuildInputs = [ fixtures subunit testtools ];
checkPhase = ''
${python.interpreter} ./testr
'';
meta = with lib; {
description = "A database of test results which can be used as part of developer workflow";
mainProgram = "testr";
homepage = "https://pypi.python.org/pypi/testrepository";
license = licenses.bsd2;
};
}