pythonPackages.cookiecutter: Move to own file

This commit is contained in:
Elis Hirwing 2018-03-31 19:38:14 +02:00 committed by Frederik Rietdijk
parent eb3fc6df2a
commit d1d13aa137
2 changed files with 29 additions and 23 deletions

View File

@ -0,0 +1,28 @@
{ stdenv, buildPythonPackage, fetchPypi, isPyPy
, itsdangerous, pytest, freezegun, docutils, jinja2, future, binaryornot, click
, whichcraft, poyo, jinja2_time }:
buildPythonPackage rec {
pname = "cookiecutter";
version = "1.4.0";
# not sure why this is broken
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
sha256 = "1clxnabmc5s4b519r1sxyj1163x833ir8xcypmdfpf6r9kbb35vn";
};
buildInputs = [ itsdangerous pytest freezegun docutils ];
propagatedBuildInputs = [
jinja2 future binaryornot click whichcraft poyo jinja2_time
];
meta = with stdenv.lib; {
homepage = https://github.com/audreyr/cookiecutter;
description = "A command-line utility that creates projects from project templates";
license = licenses.bsd3;
maintainers = with maintainers; [ kragniz ];
};
}

View File

@ -1645,29 +1645,7 @@ in {
contextlib2 = callPackage ../development/python-modules/contextlib2 { }; contextlib2 = callPackage ../development/python-modules/contextlib2 { };
cookiecutter = buildPythonPackage rec { cookiecutter = callPackage ../development/python-modules/cookiecutter { };
version = "1.4.0";
name = "cookiecutter-${version}";
# not sure why this is broken
disabled = isPyPy;
src = pkgs.fetchurl {
url = "https://github.com/audreyr/cookiecutter/archive/${version}.tar.gz";
sha256 = "1clxnabmc5s4b519r1sxyj1163x833ir8xcypmdfpf6r9kbb35vn";
};
buildInputs = with self; [ itsdangerous pytest freezegun docutils ];
propagatedBuildInputs = with self; [
jinja2 future binaryornot click whichcraft poyo jinja2_time ];
meta = {
homepage = https://github.com/audreyr/cookiecutter;
description = "A command-line utility that creates projects from project templates";
license = licenses.bsd3;
maintainers = with maintainers; [ kragniz ];
};
};
cookies = buildPythonPackage rec { cookies = buildPythonPackage rec {
name = "cookies-2.2.1"; name = "cookies-2.2.1";