2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPyPy
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest, pytest-cov, pytest-mock, freezegun
|
2022-12-02 08:20:57 +00:00
|
|
|
, jinja2, future, binaryornot, click, jinja2-time, requests
|
2022-06-26 10:26:21 +00:00
|
|
|
, python-slugify
|
|
|
|
, pyyaml
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cookiecutter";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "2.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# not sure why this is broken
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-85gr6NnFPawSYYZAE/3sf4Ov0uQu3m9t0GnF4UnFQNU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest pytest-cov pytest-mock freezegun ];
|
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
|
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 ];
|
|
|
|
};
|
|
|
|
}
|