depot/third_party/nixpkgs/pkgs/development/python-modules/fixtures/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
839 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pbr,
setuptools,
testtools,
mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "fixtures";
version = "4.1.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-grHF5p9hVSbvbAZxiKHmxgZ99/iDMlCcmfi4/buXdvM=";
};
nativeBuildInputs = [
pbr
setuptools
];
propagatedBuildInputs = [ pbr ];
passthru.optional-dependencies = {
streams = [ testtools ];
};
nativeCheckInputs = [
mock
pytestCheckHook
] ++ passthru.optional-dependencies.streams;
meta = {
description = "Reusable state for writing clean tests and more";
homepage = "https://pypi.org/project/fixtures/";
changelog = "https://github.com/testing-cabal/fixtures/blob/${version}/NEWS";
license = lib.licenses.asl20;
};
}