2021-01-13 13:07:17 +00:00
|
|
|
{ lib
|
2020-05-31 12:49:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, factory_boy
|
2021-01-13 13:07:17 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, inflection
|
|
|
|
, mock
|
|
|
|
, pytest
|
2020-05-31 12:49:52 +00:00
|
|
|
, pytestcache
|
2021-01-13 13:07:17 +00:00
|
|
|
, pytestCheckHook
|
2020-05-31 12:49:52 +00:00
|
|
|
, pytestcov
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-factoryboy";
|
2021-01-13 13:07:17 +00:00
|
|
|
version = "2.1.0";
|
2020-05-31 12:49:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pytest-dev";
|
|
|
|
repo = "pytest-factoryboy";
|
|
|
|
rev = version;
|
2021-01-13 13:07:17 +00:00
|
|
|
sha256 = "0v6b4ly0p8nknpnp3f4dbslfsifzzjx2vv27rfylx04kzdhg4m9p";
|
2020-05-31 12:49:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-12 22:20:19 +00:00
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
2021-01-13 13:07:17 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
factory_boy
|
|
|
|
inflection
|
|
|
|
];
|
2020-05-31 12:49:52 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
pytestcache
|
|
|
|
pytestcov
|
|
|
|
];
|
2021-01-13 13:07:17 +00:00
|
|
|
|
2020-05-31 12:49:52 +00:00
|
|
|
pytestFlagsArray = [ "--ignore=docs" ];
|
2021-01-13 13:07:17 +00:00
|
|
|
pythonImportsCheck = [ "pytest_factoryboy" ];
|
2020-05-31 12:49:52 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-01-13 13:07:17 +00:00
|
|
|
description = "Integration of factory_boy into the pytest runner";
|
2020-05-31 12:49:52 +00:00
|
|
|
homepage = "https://pytest-factoryboy.readthedocs.io/en/latest/";
|
|
|
|
maintainers = with maintainers; [ winpat ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|