56 lines
1001 B
Nix
56 lines
1001 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
poetry-core,
|
|
|
|
# unpropagated
|
|
pytest,
|
|
|
|
# propagated
|
|
inflection,
|
|
factory-boy,
|
|
typing-extensions,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-factoryboy";
|
|
version = "2.8.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pytest-dev";
|
|
repo = "pytest-factoryboy";
|
|
rev = version;
|
|
sha256 = "sha256-9dMsUujMCk89Ze4H9VJRS+ihjk0PAxKb8xqlw0+ROEI=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
dependencies = [
|
|
factory-boy
|
|
inflection
|
|
typing-extensions
|
|
];
|
|
|
|
pythonImportsCheck = [ "pytest_factoryboy" ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTestPaths = [ "docs" ];
|
|
|
|
meta = with lib; {
|
|
description = "Integration of factory_boy into the pytest runner";
|
|
homepage = "https://pytest-factoryboy.readthedocs.io/en/latest/";
|
|
maintainers = with maintainers; [ winpat ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|