blob: aacd9fcf7adcefeaffb5ac2693a4fdf688d7eea7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
lib,
buildPythonPackage,
fetchPypi,
flit-core,
requests,
websockets,
}:
buildPythonPackage rec {
pname = "mopidyapi";
version = "1.1.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-n1BJGHFZvuGSSumEXWIjH/CiHs5w/8skhz7yfR7Jplw=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"flit"' '"flit_core"' \
--replace-fail "flit.buildapi" "flit_core.buildapi"
'';
build-system = [ flit-core ];
dependencies = [
requests
websockets
];
pythonImportsCheck = [ "mopidyapi" ];
# PyPi does not include tests
doCheck = false;
meta = {
description = "Module for interacting with Mopidy via its JSON RPC API";
homepage = "https://github.com/AsbjornOlling/mopidyapi";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fab ];
};
}
|