diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/mox3')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/mox3/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/mox3/default.nix b/nixpkgs/pkgs/development/python-modules/mox3/default.nix new file mode 100644 index 000000000000..be6a4c7c8a5d --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/mox3/default.nix @@ -0,0 +1,40 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, python +, subunit +, testrepository +, testtools +, six +, pbr +, fixtures +, isPy36 +}: + +buildPythonPackage rec { + pname = "mox3"; + version = "0.26.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "b13c0b8459d6fb0688f9a4e70feeec43fa2cca05b727fc01156789596e083bb1"; + }; + + patchPhase = '' + sed -i 's@python@${python.interpreter}@' .testr.conf + ''; + + buildInputs = [ subunit testrepository testtools six ]; + propagatedBuildInputs = [ pbr fixtures ]; + + # FAIL: mox3.tests.test_mox.RegexTest.testReprWithFlags + # ValueError: cannot use LOCALE flag with a str pattern + doCheck = !isPy36; + + meta = with stdenv.lib; { + description = "Mock object framework for Python"; + homepage = https://docs.openstack.org/mox3/latest/; + license = licenses.asl20; + }; + +} |