nixpkgs/pkgs/development/python-modules/pylast/default.nix

43 lines
754 B
Nix
Raw Normal View History

2021-03-18 09:16:05 +00:00
{ lib
, buildPythonPackage
, certifi
2021-03-18 09:21:12 +00:00
, fetchPypi
, flaky
, pytestCheckHook
2021-03-18 09:16:05 +00:00
, pythonOlder
2021-03-18 09:21:12 +00:00
, setuptools-scm
, six
2020-06-07 13:32:43 +01:00
}:
buildPythonPackage rec {
pname = "pylast";
2021-03-18 09:16:05 +00:00
version = "4.2.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
2021-03-18 09:16:05 +00:00
sha256 = "sha256-w/mkAUUgj7L7Xv+nz1pI1TYKfihH3S3MbxaNQ4VtoH0=";
};
2021-03-18 09:16:05 +00:00
nativeBuildInputs = [ setuptools-scm ];
2021-03-18 09:21:12 +00:00
propagatedBuildInputs = [
certifi
six
];
checkInputs = [
pytestCheckHook
flaky
];
2021-03-18 09:21:12 +00:00
pythonImportsCheck = [ "pylast" ];
meta = with lib; {
2021-03-18 09:16:05 +00:00
description = "Python interface to last.fm (and compatibles)";
homepage = "https://github.com/pylast/pylast";
license = licenses.asl20;
maintainers = with maintainers; [ rvolosatovs ];
};
}