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