nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, flaky
5, httpx
6, importlib-metadata
7, pytestCheckHook
8, pythonOlder
9, setuptools-scm
10}:
11
12buildPythonPackage rec {
13 pname = "pylast";
14 version = "5.0.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-UBi2bCtGMtcavYEDtz5m5N0UxmCaj3un5aomxzbfLfg=";
22 };
23
24 nativeBuildInputs = [
25 setuptools-scm
26 ];
27
28 propagatedBuildInputs = [
29 httpx
30 ] ++ lib.optionals (pythonOlder "3.8") [
31 importlib-metadata
32 ];
33
34 checkInputs = [
35 pytestCheckHook
36 flaky
37 ];
38
39 pythonImportsCheck = [
40 "pylast"
41 ];
42
43 meta = with lib; {
44 description = "Python interface to last.fm (and compatibles)";
45 homepage = "https://github.com/pylast/pylast";
46 license = licenses.asl20;
47 maintainers = with maintainers; [ rvolosatovs ];
48 };
49}