1{ lib 2, buildPythonPackage 3, fetchPypi 4, pbr 5, setuptools 6, testtools 7, mock 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "fixtures"; 13 version = "4.1.0"; 14 format = "pyproject"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-grHF5p9hVSbvbAZxiKHmxgZ99/iDMlCcmfi4/buXdvM="; 19 }; 20 21 nativeBuildInputs = [ 22 pbr 23 setuptools 24 ]; 25 26 propagatedBuildInputs = [ 27 pbr 28 ]; 29 30 passthru.optional-dependencies = { 31 streams = [ 32 testtools 33 ]; 34 }; 35 36 nativeCheckInputs = [ 37 mock 38 pytestCheckHook 39 ] ++ passthru.optional-dependencies.streams; 40 41 meta = { 42 description = "Reusable state for writing clean tests and more"; 43 homepage = "https://pypi.org/project/fixtures/"; 44 changelog = "https://github.com/testing-cabal/fixtures/blob/${version}/NEWS"; 45 license = lib.licenses.asl20; 46 }; 47}