Resolved the following conflicts (by carefully applying patches from the both branches since the fork point): pkgs/development/libraries/epoxy/default.nix pkgs/development/libraries/gtk+/3.x.nix pkgs/development/python-modules/asgiref/default.nix pkgs/development/python-modules/daphne/default.nix pkgs/os-specific/linux/systemd/default.nix
31 lines
836 B
Nix
31 lines
836 B
Nix
{ lib, buildPythonPackage, fetchPypi, fetchpatch, isPy3k, pytest, mock, setuptools_scm }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-mock";
|
|
version = "1.7.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0jgr1h1f0m9dl3alxiiw55as28pj2lpihz12gird9z1i3vvdyydq";
|
|
};
|
|
|
|
patches = fetchpatch {
|
|
url = "${meta.homepage}/pull/107.patch";
|
|
sha256 = "07p7ra6lilfv04wyxc855zmfwxvnpmi9s0v6vh5bx769cj9jwxck";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|