mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
1b87ff961d
The source is also reused in pytest-server-fixtures, pytest-shutil and pytest-virtualenv, which now inherit the patch.
44 lines
949 B
Nix
44 lines
949 B
Nix
{
|
||
lib,
|
||
buildPythonPackage,
|
||
fetchFromGitHub,
|
||
setuptools,
|
||
setuptools-git,
|
||
pytest,
|
||
}:
|
||
|
||
buildPythonPackage {
|
||
pname = "pytest-fixture-config";
|
||
version = "1.7.1-unstable-2022-10-03";
|
||
pyproject = true;
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "man-group";
|
||
repo = "pytest-plugins";
|
||
rev = "5f9b88a65a8c1e506885352bbd9b2a47900f5014";
|
||
hash = "sha256-huN3RzwtfVf4iMJ96VRP/ldOxTUlUMF1wJIdbcGXHn4=";
|
||
};
|
||
|
||
patches = [ ./setuptools-72.0-compat.patch ];
|
||
|
||
postPatch = ''
|
||
cd pytest-fixture-config
|
||
'';
|
||
|
||
nativeBuildInputs = [
|
||
setuptools
|
||
setuptools-git
|
||
];
|
||
|
||
buildInputs = [ pytest ];
|
||
|
||
doCheck = false;
|
||
|
||
meta = with lib; {
|
||
description = "Simple configuration objects for Py.test fixtures. Allows you to skip tests when their required config variables aren’t set";
|
||
homepage = "https://github.com/manahl/pytest-plugins";
|
||
license = licenses.mit;
|
||
maintainers = with maintainers; [ ryansydnor ];
|
||
};
|
||
}
|