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