1{
2 lib,
3 aiohttp,
4 auth0-python,
5 buildPythonPackage,
6 fetchFromGitHub,
7 requests,
8 setuptools,
9 setuptools-scm,
10}:
11
12buildPythonPackage rec {
13 pname = "sharkiq";
14 version = "1.4.2";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "JeffResc";
19 repo = "sharkiq";
20 tag = "v${version}";
21 hash = "sha256-VhWqYYGZRsEPW4g9kQznr50ujGhLcTs+TS3atxsqCng=";
22 };
23
24 postPatch = ''
25 substituteInPlace pyproject.toml \
26 --replace-fail "setuptools-scm>=9.2.0" "setuptools-scm"
27 '';
28
29 build-system = [
30 setuptools
31 setuptools-scm
32 ];
33
34 dependencies = [
35 aiohttp
36 auth0-python
37 requests
38 ];
39
40 # Module has no tests
41 doCheck = false;
42
43 pythonImportsCheck = [ "sharkiq" ];
44
45 meta = with lib; {
46 description = "Python API for Shark IQ robots";
47 homepage = "https://github.com/JeffResc/sharkiq";
48 changelog = "https://github.com/JeffResc/sharkiq/releases/tag/${src.tag}";
49 license = licenses.mit;
50 maintainers = with maintainers; [ fab ];
51 };
52}