d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
64 lines
1 KiB
Nix
64 lines
1 KiB
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.5.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pytest-dev";
|
|
repo = "pytest-factoryboy";
|
|
rev = version;
|
|
sha256 = "sha256-zxgezo2PRBKs0mps0qdKWtBygunzlaxg8s9BoBaU1Ig=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
buildInputs = [
|
|
pytest
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
factory_boy
|
|
inflection
|
|
typing-extensions
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pytest_factoryboy"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"--ignore=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;
|
|
};
|
|
}
|