1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6, setuptools
7}:
8
9buildPythonPackage rec {
10 pname = "pyrituals";
11 version = "0.0.6";
12 format = "pyproject";
13 disabled = pythonOlder "3.8";
14
15 src = fetchFromGitHub {
16 owner = "milanmeu";
17 repo = pname;
18 rev = version;
19 sha256 = "0ynjz7khp67bwxjp580w3zijxr9yn44nmnbvkxjxq9scyb2mjf6g";
20 };
21
22 nativeBuildInputs = [
23 setuptools
24 ];
25
26 propagatedBuildInputs = [ aiohttp ];
27
28 # Project has no tests
29 doCheck = false;
30 pythonImportsCheck = [ "pyrituals" ];
31
32 meta = with lib; {
33 description = "Python wrapper for the Rituals Perfume Genie API";
34 homepage = "https://github.com/milanmeu/pyrituals";
35 license = with licenses; [ mit ];
36 maintainers = with maintainers; [ fab ];
37 };
38}