2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPyPy
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
2023-10-09 19:29:22 +00:00
|
|
|
, pytest, pytest-cov, pytest-mock, freezegun, safety, pre-commit
|
2024-01-13 08:15:51 +00:00
|
|
|
, jinja2, binaryornot, click, jinja2-time, requests
|
2022-06-26 10:26:21 +00:00
|
|
|
, python-slugify
|
|
|
|
, pyyaml
|
2023-10-09 19:29:22 +00:00
|
|
|
, arrow
|
|
|
|
, rich
|
2022-06-26 10:26:21 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cookiecutter";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.5.0";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# not sure why this is broken
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-5h6QNHSOP0G4vSwR8A0DB4S0hxHE1cQjY8UJiaZTMew=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest
|
|
|
|
pytest-cov
|
|
|
|
pytest-mock
|
|
|
|
freezegun
|
|
|
|
safety
|
|
|
|
pre-commit
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-06-26 10:26:21 +00:00
|
|
|
binaryornot
|
|
|
|
jinja2
|
|
|
|
click
|
|
|
|
pyyaml
|
2022-12-02 08:20:57 +00:00
|
|
|
jinja2-time
|
2022-06-26 10:26:21 +00:00
|
|
|
python-slugify
|
|
|
|
requests
|
2023-10-09 19:29:22 +00:00
|
|
|
arrow
|
|
|
|
rich
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# requires network access for cloning git repos
|
|
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/audreyr/cookiecutter";
|
|
|
|
description = "A command-line utility that creates projects from project templates";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ kragniz ];
|
|
|
|
};
|
|
|
|
}
|