git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #34889 from dotlambda/pytest-mock

pythonPackages.pytest-mock: 1.6.0 -> 1.6.3

commit3e94432753167cb4b765b7547d86c227a8855da8 authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateMon 12 Feb 2018, 12:06 (9 years ago) parent2bfda201674636
3 files changed+28−23
pkgs/development/python-modules/Nikola/default.nix+2−2 pkgs/development/python-modules/pytest-mock/default.nix+25 pkgs/top-level/python-packages.nix+1−21
pkgs/development/python-modules/Nikola/default.nix+2−2
@@ -7,6 +7,7 @@
77, pytest
88, pytestcov
99, pytest-mock
10+, mock
1011, pygments
1112, pillow
1213, dateutil
@@ -28,7 +29,6 @@
2829}:
2930
3031buildPythonPackage rec {
31− name = "${pname}-${version}";
3232 pname = "Nikola";
3333 version = "7.8.11";
3434
@@ -37,7 +37,7 @@ buildPythonPackage rec {
3737 # other hand doesn't support Python 3.3). So, just disable Python 2.
3838 disabled = !isPy3k;
3939
40− buildInputs = [ pytest pytestcov pytest-mock glibcLocales ];
40+ checkInputs = [ pytest pytestcov pytest-mock mock glibcLocales ];
4141
4242 propagatedBuildInputs = [
4343 pygments pillow dateutil docutils Mako unidecode lxml Yapsy PyRSS2Gen
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