Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchPypi, isPyPy 2, pytest, pytestcov, pytest-mock, freezegun 3, jinja2, future, binaryornot, click, whichcraft, poyo, jinja2_time, requests 4, python-slugify }: 5 6buildPythonPackage rec { 7 pname = "cookiecutter"; 8 version = "1.7.2"; 9 10 # not sure why this is broken 11 disabled = isPyPy; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "efb6b2d4780feda8908a873e38f0e61778c23f6a2ea58215723bcceb5b515dac"; 16 }; 17 18 checkInputs = [ pytest pytestcov pytest-mock freezegun ]; 19 propagatedBuildInputs = [ 20 jinja2 future binaryornot click whichcraft poyo jinja2_time requests python-slugify 21 ]; 22 23 # requires network access for cloning git repos 24 doCheck = false; 25 checkPhase = '' 26 pytest 27 ''; 28 29 meta = with stdenv.lib; { 30 homepage = "https://github.com/audreyr/cookiecutter"; 31 description = "A command-line utility that creates projects from project templates"; 32 license = licenses.bsd3; 33 maintainers = with maintainers; [ kragniz ]; 34 }; 35}