nixpkgs/pkgs/development/python-modules/pytest-mock/default.nix
makefu 579216f4c4
pythonPackages.pytest-mock: 1.7.0 -> 1.7.1
1.7.0 fails with ascii error
2018-03-05 09:22:41 +01:00

25 lines
679 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, setuptools_scm }:
buildPythonPackage rec {
pname = "pytest-mock";
version = "1.7.1";
src = fetchPypi {
inherit pname version;
sha256 = "0jgr1h1f0m9dl3alxiiw55as28pj2lpihz12gird9z1i3vvdyydq";
};
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 ];
};
}