diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/testscenarios/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/testscenarios/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/testscenarios/default.nix b/nixpkgs/pkgs/development/python-modules/testscenarios/default.nix new file mode 100644 index 000000000000..6fddc17af322 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/testscenarios/default.nix @@ -0,0 +1,30 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, testtools +}: + +buildPythonPackage rec { + pname = "testscenarios"; + version = "0.5.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "c257cb6b90ea7e6f8fef3158121d430543412c9a87df30b5dde6ec8b9b57a2b6"; + }; + + postPatch = '' + substituteInPlace setup.cfg \ + --replace "buffer = 1" "" \ + --replace "catch = 1" "" + ''; + + propagatedBuildInputs = [ testtools ]; + + meta = with stdenv.lib; { + description = "A pyunit extension for dependency injection"; + homepage = https://pypi.python.org/pypi/testscenarios; + license = licenses.asl20; + }; + +} |