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

50 lines
865 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
2021-12-19 16:01:11 +00:00
, importlib-metadata
2021-03-18 09:21:12 +00:00
, pytestCheckHook
2021-03-18 09:16:05 +00:00
, pythonOlder
2021-03-18 09:21:12 +00:00
, setuptools-scm
2020-06-07 13:32:43 +01:00
}:
buildPythonPackage rec {
pname = "pylast";
2021-12-19 16:01:11 +00:00
version = "4.4.0";
format = "setuptools";
2021-03-18 09:16:05 +00:00
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
2021-12-19 16:01:11 +00:00
sha256 = "sha256-2m6+pQYBmvVxlBw1yLSAKr3kZ5WS1S0TZ1ZQ3ER+bCk=";
};
2021-12-19 16:01:11 +00:00
nativeBuildInputs = [
setuptools-scm
];
2021-03-18 09:16:05 +00:00
2021-03-18 09:21:12 +00:00
propagatedBuildInputs = [
certifi
2021-12-19 16:01:11 +00:00
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
2021-03-18 09:21:12 +00:00
];
checkInputs = [
pytestCheckHook
flaky
];
2021-12-19 16:01:11 +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 ];
};
}