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-04-21 15:54:59 +00:00
|
|
|
version = "2.6.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# not sure why this is broken
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-2yH4Fp6k9P3CQI1IykSFk0neJkf75JSp1sPt/AVCwhw=";
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cookiecutter";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ kragniz ];
|
|
|
|
};
|
|
|
|
}
|