pythonPackages.gmusicapi: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-15 23:36:16 -04:00 committed by Frederik Rietdijk
parent 815fdff2ff
commit 348b2fb38c
8 changed files with 207 additions and 31 deletions

View File

@ -0,0 +1,37 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, validictory
, decorator
, mutagen
, protobuf
, setuptools
, requests
, dateutil
, proboscis
, mock
, appdirs
, oauth2client
, pyopenssl
, gpsoauth
, MechanicalSoup
, future
}:
buildPythonPackage rec {
pname = "gmusicapi";
version = "10.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "0smlrafh1bjzrcjzl7im8pf8f04gcnx92lf3g5qr7yzgq8k20xa2";
};
propagatedBuildInputs = [ validictory decorator mutagen protobuf setuptools requests dateutil proboscis mock appdirs oauth2client pyopenssl gpsoauth MechanicalSoup future ];
meta = with stdenv.lib; {
description = "An unofficial API for Google Play Music";
homepage = https://pypi.python.org/pypi/gmusicapi/;
license = licenses.bsd3;
};
}

View File

@ -0,0 +1,29 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, mock
, pyyaml
}:
buildPythonPackage rec {
pname = "helper";
version = "2.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "4e33dde42ad4df30fb7790689f93d77252cff26a565610d03ff2e434865a53a2";
};
buildInputs = [ mock ];
propagatedBuildInputs = [ pyyaml ];
# No tests
doCheck = false;
meta = with stdenv.lib; {
description = "Development library for quickly writing configurable applications and daemons";
homepage = https://helper.readthedocs.org/;
license = licenses.bsd3;
};
}

View File

@ -0,0 +1,36 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, docutils
, lxml
, manuel
, pygments
, svg-path
, watchdog
, isPy3k
}:
buildPythonPackage rec {
pname = "hovercraft";
version = "2.0";
disabled = ! isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0lqxr816lymgnywln8bbv9nrmkyahjjcjkm9kjyny9bflayz4f1g";
};
propagatedBuildInputs = [ docutils lxml manuel pygments svg-path watchdog ];
# one test assumes we have docutils 0.12
# TODO: enable tests after upgrading docutils to 0.12
doCheck = false;
meta = with stdenv.lib; {
description = "A tool to make impress.js presentations from reStructuredText";
homepage = https://github.com/regebro/hovercraft;
license = licenses.mit;
maintainers = with maintainers; [ goibhniu ];
};
}

View File

@ -0,0 +1,26 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
}:
buildPythonPackage rec {
pname = "hsaudiotag";
version = "1.1.1";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "15hgm128p8nysfi0jb127awga3vlj0iw82l50swjpvdh01m7rda8";
};
# no tests
doCheck = false;
meta = with stdenv.lib; {
description = "A pure Python library that lets one to read metadata from media files";
homepage = http://hg.hardcoded.net/hsaudiotag/;
license = licenses.bsd3;
};
}

View File

@ -0,0 +1,26 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
}:
buildPythonPackage rec {
pname = "hsaudiotag3k";
version = "1.1.3";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0bv5k5594byr2bmhh77xv10fkdpckcmxg3w380yp30aqf83rcsx3";
};
# no tests
doCheck = false;
meta = with stdenv.lib; {
description = "A pure Python library that lets one to read metadata from media files";
homepage = http://hg.hardcoded.net/hsaudiotag/;
license = licenses.bsd3;
};
}

View File

@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
version = "0.3";
pname = "httpauth";
src = fetchPypi {
inherit pname version;
sha256 = "0qas7876igyz978pgldp5r7n7pis8n4vf0v87gxr9l7p7if5lr3l";
};
doCheck = false;
meta = with stdenv.lib; {
description = "WSGI HTTP Digest Authentication middleware";
homepage = https://github.com/jonashaag/httpauth;
license = licenses.bsd2;
maintainers = with maintainers; [ ];
};
}

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, mock
}:
buildPythonPackage rec {
version = "0.5.1";
pname = "humanize";
src = fetchPypi {
inherit pname version;
sha256 = "a43f57115831ac7c70de098e6ac46ac13be00d69abbf60bdcac251344785bb19";
};
buildInputs = [ mock ];
doCheck = false;
meta = with stdenv.lib; {
description = "Python humanize utilities";
homepage = https://github.com/jmoiron/humanize;
license = licenses.mit;
maintainers = with maintainers; [ ];
platforms = platforms.linux; # can only test on linux
};
}

View File

@ -1812,38 +1812,8 @@ in {
gmpy2 = callPackage ../development/python-modules/gmpy2 { };
gmusicapi = with pkgs; buildPythonPackage rec {
name = "gmusicapi-10.1.0";
gmusicapi = callPackage ../development/python-modules/gmusicapi { };
src = pkgs.fetchurl {
url = "mirror://pypi/g/gmusicapi/gmusicapi-10.1.0.tar.gz";
sha256 = "0smlrafh1bjzrcjzl7im8pf8f04gcnx92lf3g5qr7yzgq8k20xa2";
};
propagatedBuildInputs = with self; [
validictory
decorator
mutagen
protobuf
setuptools
requests
dateutil
proboscis
mock
appdirs
oauth2client
pyopenssl
gpsoauth
MechanicalSoup
future
];
meta = {
description = "An unofficial API for Google Play Music";
homepage = https://pypi.python.org/pypi/gmusicapi/;
license = licenses.bsd3;
};
};
gnureadline = buildPythonPackage rec {
version = "6.3.3";