pythonPackages.svgwrite: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-27 18:03:13 -04:00
parent e502cd4b3b
commit a7dac03113
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 27 additions and 18 deletions

View File

@ -0,0 +1,26 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, setuptools
, pyparsing
}:
buildPythonPackage rec {
pname = "svgwrite";
version = "1.1.6";
src = fetchPypi {
inherit pname version;
sha256 = "1f018813072aa4d7e95e58f133acb3f68fa7de0a0d89ec9402cc38406a0ec5b8";
};
buildInputs = [ setuptools ];
propagatedBuildInputs = [ pyparsing ];
meta = with stdenv.lib; {
description = "A Python library to create SVG drawings";
homepage = https://bitbucket.org/mozman/svgwrite;
license = licenses.mit;
};
}

View File

@ -3924,24 +3924,7 @@ in {
structlog = callPackage ../development/python-modules/structlog { };
svgwrite = buildPythonPackage rec {
name = "svgwrite-${version}";
version = "1.1.6";
src = pkgs.fetchurl {
url = "mirror://pypi/s/svgwrite/${name}.tar.gz";
sha256 = "1f018813072aa4d7e95e58f133acb3f68fa7de0a0d89ec9402cc38406a0ec5b8";
};
buildInputs = with self; [ setuptools ];
propagatedBuildInputs = with self; [ pyparsing ];
meta = {
description = "A Python library to create SVG drawings";
homepage = https://bitbucket.org/mozman/svgwrite;
license = licenses.mit;
};
};
svgwrite = callPackage ../development/python-modules/svgwrite { };
freezegun = buildPythonPackage rec {
name = "freezegun-${version}";