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

50 lines
865 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, certifi
, fetchPypi
, flaky
, importlib-metadata
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pylast";
version = "4.5.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-YoALculx2trEDD1vU4xhiCGdb1OFPdxI1p2fwlZZAY8=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
certifi
] ++ 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 ];
};
}