pythonPackages.pocket: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 18:08:09 -04:00 committed by Frederik Rietdijk
parent 4bb98c4c1a
commit 36d0404ed6
2 changed files with 26 additions and 20 deletions

View File

@ -0,0 +1,25 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, requests
}:
buildPythonPackage rec {
pname = "pocket";
version = "0.3.6";
src = fetchPypi {
inherit pname version;
sha256 = "1fc9vc5nyzf1kzmnrs18dmns7nn8wjfrg7br1w4c5sgs35mg2ywh";
};
buildInputs = [ requests ];
meta = with stdenv.lib; {
description = "Wrapper for the pocket API";
homepage = "https://github.com/tapanpandita/pocket";
license = licenses.bsd3;
maintainers = with maintainers; [ ericsagnes ];
};
}

View File

@ -2791,26 +2791,7 @@ in {
pendulum = callPackage ../development/python-modules/pendulum { };
pocket = buildPythonPackage rec {
name = "pocket-${version}";
version = "0.3.6";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pocket/${name}.tar.gz";
sha256 = "1fc9vc5nyzf1kzmnrs18dmns7nn8wjfrg7br1w4c5sgs35mg2ywh";
};
buildInputs = with self; [
requests
];
meta = {
description = "Wrapper for the pocket API";
homepage = "https://github.com/tapanpandita/pocket";
license = licenses.bsd3;
maintainers = with maintainers; [ ericsagnes ];
};
};
pocket = callPackage ../development/python-modules/pocket { };
mistune = callPackage ../development/python-modules/mistune { };