diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-10-25 20:40:31 -0400 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-10-27 09:07:18 +0200 |
commit | 52813e6219e0d3513eaff7e535874896e9001d35 (patch) | |
tree | 594e768a34e6c3da80429156dd239a68adb16917 /pkgs/development/python-modules/mox3 | |
parent | 366ca6cd6df66d043c4d6e907f9a008d86021240 (diff) |
pythonPackages.mox3: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/mox3')
-rw-r--r-- | pkgs/development/python-modules/mox3/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mox3/default.nix b/pkgs/development/python-modules/mox3/default.nix new file mode 100644 index 0000000000000..8701ea177b022 --- /dev/null +++ b/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.23.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0q26sg0jasday52a7y0cch13l0ssjvr4yqnvswqxsinj1lv5ld88"; + }; + + 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; + }; + +} |