pythonPackages.linode: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-15 17:07:54 -04:00 committed by Frederik Rietdijk
parent 61552d7893
commit 3f60a4cce4
2 changed files with 26 additions and 18 deletions

View File

@ -0,0 +1,25 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, requests
}:
buildPythonPackage rec {
pname = "linode";
version = "0.4";
src = fetchPypi {
inherit pname version;
sha256 = "db3c2a7fab8966d903a63f16c515bff241533e4ef2d746aa7aae4a49bba5e573";
};
propagatedBuildInputs = [ requests ];
meta = with stdenv.lib; {
homepage = "https://github.com/ghickman/linode";
description = "A thin python wrapper around Linode's API";
license = licenses.mit;
maintainers = with maintainers; [ nslqqq ];
};
}

View File

@ -5721,24 +5721,7 @@ in {
line_profiler = callPackage ../development/python-modules/line_profiler { };
linode = buildPythonPackage rec {
name = "linode-${version}";
version = "0.4";
src = pkgs.fetchurl {
url = "mirror://pypi/l/linode/linode-${version}.tar.gz";
sha256 = "db3c2a7fab8966d903a63f16c515bff241533e4ef2d746aa7aae4a49bba5e573";
};
propagatedBuildInputs = with self; [ requests ];
meta = {
homepage = "https://github.com/ghickman/linode";
description = "A thin python wrapper around Linode's API";
license = licenses.mit;
maintainers = with maintainers; [ nslqqq ];
};
};
linode = callPackage ../development/python-modules/linode { };
linode-api = callPackage ../development/python-modules/linode-api { };