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