mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
41 lines
785 B
Nix
41 lines
785 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, flit-core
|
|
, pytest
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-param-files";
|
|
version = "0.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chrisjsewell";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Q7wWoggJN2w2a2umQHx5TsVcugqpovBEtOKruNMZQ8A=";
|
|
};
|
|
|
|
format = "flit";
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
buildInputs = [
|
|
pytest
|
|
];
|
|
|
|
pythonImportsCheck = [ "pytest_param_files" ];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Package to generate parametrized pytests from external files";
|
|
homepage = "https://github.com/chrisjsewell/pytest-param-files";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ loicreynier ];
|
|
};
|
|
}
|