1{ lib, buildPythonPackage, fetchPypi, isPyPy 2, pytest, pytest-cov, pytest-mock, freezegun, safety, pre-commit 3, jinja2, future, binaryornot, click, jinja2-time, requests 4, python-slugify 5, pyyaml 6, arrow 7, rich 8}: 9 10buildPythonPackage rec { 11 pname = "cookiecutter"; 12 version = "2.3.0"; 13 14 # not sure why this is broken 15 disabled = isPyPy; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-lCp5SYF0f21/Q51uSdOdyRqaZBKDYUFgyTxHTHLCliE="; 20 }; 21 22 nativeCheckInputs = [ 23 pytest 24 pytest-cov 25 pytest-mock 26 freezegun 27 safety 28 pre-commit 29 ]; 30 propagatedBuildInputs = [ 31 binaryornot 32 jinja2 33 click 34 pyyaml 35 jinja2-time 36 python-slugify 37 requests 38 arrow 39 rich 40 ]; 41 42 # requires network access for cloning git repos 43 doCheck = false; 44 checkPhase = '' 45 pytest 46 ''; 47 48 meta = with lib; { 49 homepage = "https://github.com/audreyr/cookiecutter"; 50 description = "A command-line utility that creates projects from project templates"; 51 license = licenses.bsd3; 52 maintainers = with maintainers; [ kragniz ]; 53 }; 54}