2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
2020-06-18 07:06:33 +00:00
|
|
|
, buildPythonPackage
|
2021-01-15 22:18:51 +00:00
|
|
|
, fetchFromGitHub
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
, poetry-core
|
|
|
|
|
|
|
|
# unpropagated
|
2021-01-15 22:18:51 +00:00
|
|
|
, pytest
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
# propagated
|
|
|
|
, inflection
|
2023-10-19 13:55:26 +00:00
|
|
|
, factory-boy
|
2023-08-10 07:59:29 +00:00
|
|
|
, typing-extensions
|
|
|
|
|
|
|
|
# tests
|
2021-01-15 22:18:51 +00:00
|
|
|
, pytestCheckHook
|
2020-06-18 07:06:33 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-factoryboy";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "2.5.1";
|
|
|
|
format = "pyproject";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pytest-dev";
|
|
|
|
repo = "pytest-factoryboy";
|
|
|
|
rev = version;
|
2023-08-10 07:59:29 +00:00
|
|
|
sha256 = "sha256-zxgezo2PRBKs0mps0qdKWtBygunzlaxg8s9BoBaU1Ig=";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-10-19 13:55:26 +00:00
|
|
|
factory-boy
|
2021-01-15 22:18:51 +00:00
|
|
|
inflection
|
2023-08-10 07:59:29 +00:00
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_factoryboy"
|
2021-01-15 22:18:51 +00:00
|
|
|
];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-06-18 07:06:33 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"--ignore=docs"
|
|
|
|
];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Integration of factory_boy into the pytest runner";
|
2020-06-18 07:06:33 +00:00
|
|
|
homepage = "https://pytest-factoryboy.readthedocs.io/en/latest/";
|
|
|
|
maintainers = with maintainers; [ winpat ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|