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-05-06 20:31:41 +01:00
version = "4.2.1";
2021-03-18 09:16:05 +00:00
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
2021-05-06 20:31:41 +01:00
sha256 = "sha256-R1enQk6luuBiobMPDn5x1SXx7zUI/5c8dPtyWkmG/18=";
};
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 ];
};
}