2022-05-02 16:13:10 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, py
|
|
|
|
, pytest
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2017-05-04 19:18:28 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-datafiles";
|
2022-05-02 10:30:56 +00:00
|
|
|
version = "2.0.1";
|
2022-05-02 16:13:10 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "omarkohl";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-M0Lnsqi05Xs0uN6LlafNS7HJZOut+nrMZyvGPMMhIkc=";
|
2017-05-04 19:18:28 +02:00
|
|
|
};
|
|
|
|
|
2022-05-02 16:13:10 +02:00
|
|
|
buildInputs = [
|
|
|
|
py
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_datafiles"
|
|
|
|
];
|
2017-05-04 19:18:28 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-05-02 16:13:10 +02:00
|
|
|
description = "Pytest plugin to create a tmpdir containing predefined files/directories";
|
2020-12-22 02:33:02 +00:00
|
|
|
homepage = "https://github.com/omarkohl/pytest-datafiles";
|
2022-05-02 16:13:10 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
2017-05-04 19:18:28 +02:00
|
|
|
};
|
2017-12-05 23:20:11 +01:00
|
|
|
}
|