diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-12 12:37:41 +0100 |
---|---|---|
committer | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-12 12:46:21 +0100 |
commit | 804bf3c22a4e64342dc40141a5df77e9c7d2f9a3 (patch) | |
tree | 5d3808993c945c44640467409f6551d31c289cbb /pkgs/development/python-modules/pytest-mock | |
parent | 040bde90521c9956e8970b35305a337732cf0ade (diff) | |
download | nixlib-804bf3c22a4e64342dc40141a5df77e9c7d2f9a3.tar nixlib-804bf3c22a4e64342dc40141a5df77e9c7d2f9a3.tar.gz nixlib-804bf3c22a4e64342dc40141a5df77e9c7d2f9a3.tar.bz2 nixlib-804bf3c22a4e64342dc40141a5df77e9c7d2f9a3.tar.lz nixlib-804bf3c22a4e64342dc40141a5df77e9c7d2f9a3.tar.xz nixlib-804bf3c22a4e64342dc40141a5df77e9c7d2f9a3.tar.zst nixlib-804bf3c22a4e64342dc40141a5df77e9c7d2f9a3.zip |
pythonPackages.pytest-mock: 1.6.0 -> 1.6.3
Diffstat (limited to 'pkgs/development/python-modules/pytest-mock')
-rw-r--r-- | pkgs/development/python-modules/pytest-mock/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-mock/default.nix b/pkgs/development/python-modules/pytest-mock/default.nix new file mode 100644 index 000000000000..7cb5224c60b6 --- /dev/null +++ b/pkgs/development/python-modules/pytest-mock/default.nix @@ -0,0 +1,25 @@ +{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, setuptools_scm }: + +buildPythonPackage rec { + pname = "pytest-mock"; + version = "1.6.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "920d1167af5c2c2ad3fa0717d0c6c52e97e97810160c15721ac895cac53abb1c"; + }; + + propagatedBuildInputs = [ pytest ] ++ lib.optional (!isPy3k) mock; + nativeBuildInputs = [ setuptools_scm ]; + + checkPhase = '' + py.test + ''; + + meta = with lib; { + description = "Thin-wrapper around the mock package for easier use with py.test."; + homepage = https://github.com/pytest-dev/pytest-mock; + license = licenses.mit; + maintainers = with maintainers; [ nand0p ]; + }; +} |