pythonPackages.mapsplotlib: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-15 17:44:05 -04:00 committed by Frederik Rietdijk
parent 1bbb17afe5
commit d70a0fc079
2 changed files with 33 additions and 19 deletions

View File

@ -0,0 +1,32 @@
{ stdenv
, buildPythonPackage
, isPy3k
, fetchPypi
, matplotlib
, scipy
, pandas
, requests
, pillow
}:
buildPythonPackage rec {
pname = "mapsplotlib";
version = "1.0.6";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "09gpws3x0jd88n636baxx5izjffrpjy4j6jl8l7vj29yzvrdr2bp";
};
propagatedBuildInputs = [ matplotlib scipy pandas requests pillow ];
meta = with stdenv.lib; {
description = "Custom Python plots on a Google Maps background";
homepage = https://github.com/tcassou/mapsplotlib;
license = licenses.mit;
maintainers = [ maintainers.rob ];
};
}

View File

@ -5807,25 +5807,7 @@ in {
manuel = callPackage ../development/python-modules/manuel { };
mapsplotlib = buildPythonPackage rec {
name = "mapsplotlib-${version}";
version = "1.0.6";
disabled = isPy3k;
src = pkgs.fetchurl {
url = "mirror://pypi/m/mapsplotlib/${name}.tar.gz";
sha256 = "09gpws3x0jd88n636baxx5izjffrpjy4j6jl8l7vj29yzvrdr2bp";
};
propagatedBuildInputs = with self; [ matplotlib scipy pandas requests pillow ];
meta = {
description = "Custom Python plots on a Google Maps background";
homepage = https://github.com/tcassou/mapsplotlib;
maintainers = [ maintainers.rob ];
};
};
mapsplotlib = callPackage ../development/python-modules/mapsplotlib { };
markdown = callPackage ../development/python-modules/markdown { };