python.pkgs.webassets: move to a separate file

This commit is contained in:
Nikolay Amiantov 2018-02-25 20:27:36 +03:00
parent c17b05e94e
commit 9c14e99e71
2 changed files with 26 additions and 26 deletions

View File

@ -0,0 +1,25 @@
{ lib, buildPythonPackage, fetchurl, pyyaml, nose, jinja2, mock, pytest }:
buildPythonPackage rec {
name = "webassets-${version}";
version = "0.12.1";
src = fetchurl {
url = "mirror://pypi/w/webassets/${name}.tar.gz";
sha256 = "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7";
};
propagatedBuildInputs = [ pyyaml ];
checkInputs = [ nose jinja2 mock pytest ];
# Needs Babel CLI tool
doCheck = false;
checkPhase = "py.test";
meta = with lib; {
description = "Media asset management for Python, with glue code for various web frameworks";
homepage = http://github.com/miracle2k/webassets/;
license = licenses.bsd2;
maintainers = with maintainers; [ abbradar ];
};
}

View File

@ -17735,32 +17735,7 @@ EOF
waitress-django = callPackage ../development/python-modules/waitress-django { };
webassets = buildPythonPackage rec {
name = "webassets-${version}";
version = "0.12.1";
src = pkgs.fetchurl {
url = "mirror://pypi/w/webassets/${name}.tar.gz";
sha256 = "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7";
};
buildInputs = with self; [ nose jinja2 mock pytest ];
propagatedBuildInputs = with self; [ pyyaml ];
doCheck = false;
checkPhase = ''
py.test
'';
meta = {
description = "Media asset management for Python, with glue code for various web frameworks";
homepage = "http://github.com/miracle2k/webassets/";
license = licenses.bsd2;
platforms = platforms.all;
maintainers = with maintainers; [ abbradar ];
};
};
webassets = callPackage ../development/python-modules/webassets { };
webcolors = callPackage ../development/python-modules/webcolors { };