1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 hatch-vcs,
7 testtools,
8 mock,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "fixtures";
14 version = "4.2.6";
15 pyproject = true;
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-lUcrFbFFBjpnL74zsSRMz/gp++yX1TDYYtJvQW0WyQs=";
20 };
21
22 build-system = [
23 hatchling
24 hatch-vcs
25 ];
26
27 optional-dependencies = {
28 streams = [ testtools ];
29 };
30
31 nativeCheckInputs = [
32 mock
33 pytestCheckHook
34 ]
35 ++ optional-dependencies.streams;
36
37 meta = {
38 description = "Reusable state for writing clean tests and more";
39 homepage = "https://github.com/testing-cabal/fixtures";
40 changelog = "https://github.com/testing-cabal/fixtures/blob/${version}/NEWS";
41 license = lib.licenses.asl20;
42 };
43}