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
|
2020-06-18 07:06:33 +00:00
|
|
|
, jinja2, future, binaryornot, click, whichcraft, poyo, jinja2_time, requests
|
|
|
|
, python-slugify }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cookiecutter";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "1.7.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# not sure why this is broken
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "sha256-a5pNcoguJDvgd6c5fQ8fdv5mzz35HzEV27UzDiFPpFc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ pytest pytest-cov pytest-mock freezegun ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2020-06-18 07:06:33 +00:00
|
|
|
jinja2 future binaryornot click whichcraft poyo jinja2_time requests python-slugify
|
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 ];
|
|
|
|
};
|
|
|
|
}
|