2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pbr,
|
|
|
|
setuptools,
|
|
|
|
testtools,
|
|
|
|
mock,
|
|
|
|
pytestCheckHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fixtures";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "4.1.0";
|
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-grHF5p9hVSbvbAZxiKHmxgZ99/iDMlCcmfi4/buXdvM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pbr
|
2023-08-10 07:59:29 +00:00
|
|
|
setuptools
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ pbr ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
streams = [ testtools ];
|
2023-08-10 07:59:29 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-09 03:18:52 +00:00
|
|
|
mock
|
2023-08-10 07:59:29 +00:00
|
|
|
pytestCheckHook
|
2024-10-04 16:56:33 +00:00
|
|
|
] ++ optional-dependencies.streams;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Reusable state for writing clean tests and more";
|
2023-08-10 07:59:29 +00:00
|
|
|
homepage = "https://pypi.org/project/fixtures/";
|
|
|
|
changelog = "https://github.com/testing-cabal/fixtures/blob/${version}/NEWS";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
}
|