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