nixpkgs/pkgs/development/python-modules/pylast/default.nix
Fabian Affolter d2f1613f15 python39Packages.pylast: 4.5.0 -> 5.0.0
python39Packages.pylast: 4.5.0 -> 5.0.0
2022-04-26 17:06:50 -07:00

49 lines
859 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, flaky
, httpx
, importlib-metadata
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pylast";
version = "5.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-UBi2bCtGMtcavYEDtz5m5N0UxmCaj3un5aomxzbfLfg=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
httpx
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
checkInputs = [
pytestCheckHook
flaky
];
pythonImportsCheck = [
"pylast"
];
meta = with lib; {
description = "Python interface to last.fm (and compatibles)";
homepage = "https://github.com/pylast/pylast";
license = licenses.asl20;
maintainers = with maintainers; [ rvolosatovs ];
};
}