2018-03-31 18:38:14 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPyPy
|
2018-04-04 19:04:41 +01:00
|
|
|
, pytest, pytestcov, pytest-mock, freezegun
|
2020-06-02 04:21:07 +01:00
|
|
|
, jinja2, future, binaryornot, click, whichcraft, poyo, jinja2_time, requests
|
|
|
|
, python-slugify }:
|
2018-03-31 18:38:14 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cookiecutter";
|
2020-05-09 11:01:45 +01:00
|
|
|
version = "1.7.2";
|
2018-03-31 18:38:14 +01:00
|
|
|
|
|
|
|
# not sure why this is broken
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 11:01:45 +01:00
|
|
|
sha256 = "efb6b2d4780feda8908a873e38f0e61778c23f6a2ea58215723bcceb5b515dac";
|
2018-03-31 18:38:14 +01:00
|
|
|
};
|
|
|
|
|
2018-04-04 19:04:41 +01:00
|
|
|
checkInputs = [ pytest pytestcov pytest-mock freezegun ];
|
2018-03-31 18:38:14 +01:00
|
|
|
propagatedBuildInputs = [
|
2020-06-02 04:21:07 +01:00
|
|
|
jinja2 future binaryornot click whichcraft poyo jinja2_time requests python-slugify
|
2018-03-31 18:38:14 +01:00
|
|
|
];
|
2018-04-04 19:04:41 +01:00
|
|
|
|
|
|
|
# requires network access for cloning git repos
|
|
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
2018-03-31 18:38:14 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/audreyr/cookiecutter";
|
2018-03-31 18:38:14 +01:00
|
|
|
description = "A command-line utility that creates projects from project templates";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ kragniz ];
|
|
|
|
};
|
|
|
|
}
|