git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.pytest-mock: 1.6.0 -> 1.6.3
commit804bf3c22a4e64342dc40141a5df77e9c7d2f9a3 authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de> dateMon 12 Feb 2018, 12:37 (9 years ago) parent040bde9
2 files changed+26−21
pkgs/development/python-modules/pytest-mock/default.nix+25 pkgs/top-level/python-packages.nix+1−21
pkgs/development/python-modules/pytest-mock/default.nixnew file+25
@@ -0,0 +1,25 @@
1+{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, setuptools_scm }:
2+
3+buildPythonPackage rec {
4+ pname = "pytest-mock";
5+ version = "1.6.3";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "920d1167af5c2c2ad3fa0717d0c6c52e97e97810160c15721ac895cac53abb1c";
10+ };
11+
12+ propagatedBuildInputs = [ pytest ] ++ lib.optional (!isPy3k) mock;
13+ nativeBuildInputs = [ setuptools_scm ];
14+
15+ checkPhase = ''
16+ py.test
17+ '';
18+
19+ meta = with lib; {
20+ description = "Thin-wrapper around the mock package for easier use with py.test.";
21+ homepage = https://github.com/pytest-dev/pytest-mock;
22+ license = licenses.mit;
23+ maintainers = with maintainers; [ nand0p ];
24+ };
25+}
pkgs/top-level/python-packages.nix+1−21
@@ -3261,27 +3261,7 @@ in {
32613261 };
32623262 };
32633263
3264− pytest-mock = buildPythonPackage rec {
3265− name = "${pname}-${version}";
3266− pname = "pytest-mock";
3267− version = "1.6.0";
3268−
3269− buildInputs = with self; [ pytest setuptools_scm ];
3270− propagatedBuildInputs = with self; [ mock ];
3271−
3272− meta = {
3273− description = "Thin-wrapper around the mock package for easier use with py.test.";
3274− homepage = "https://github.com/pytest-dev/pytest-mock";
3275− license = licenses.mit;
3276− maintainers = with maintainers; [ nand0p ];
3277− platforms = platforms.all;
3278− };
3279−
3280− src = fetchPypi {
3281− inherit pname version;
3282− sha256 = "07qccww4bq9jxlc0fbhlspr13kcsixchsnl8vk4wdiyvsjy7r8c3";
3283− };
3284− };
3264+ pytest-mock = callPackage ../development/python-modules/pytest-mock { };
32853265
32863266 pytest-timeout = callPackage ../development/python-modules/pytest-timeout { };
32873267