at 22.05-pre 1.2 kB view raw
1{ lib 2, aiodns 3, aiohttp 4, async-timeout 5, attrs 6, brotlipy 7, buildPythonPackage 8, cchardet 9, click 10, colorama 11, fetchFromGitHub 12, halo 13, poetry-core 14, pythonOlder 15, requests 16, rich 17}: 18 19buildPythonPackage rec { 20 pname = "surepy"; 21 version = "0.7.2"; 22 format = "pyproject"; 23 disabled = pythonOlder "3.8"; 24 25 src = fetchFromGitHub { 26 owner = "benleb"; 27 repo = pname; 28 rev = "v${version}"; 29 sha256 = "sha256-yc+jXA4ndFhRZmFPz11HbVs9qaPFNa6WdwXj6hRyjw4="; 30 }; 31 32 postPatch = '' 33 substituteInPlace pyproject.toml \ 34 --replace 'click = "^7.1.2"' 'click = "*"' \ 35 --replace 'attrs = "^20.3.0"' 'attrs = "*"' 36 ''; 37 38 nativeBuildInputs = [ 39 poetry-core 40 ]; 41 42 propagatedBuildInputs = [ 43 aiodns 44 aiohttp 45 async-timeout 46 attrs 47 brotlipy 48 cchardet 49 click 50 colorama 51 halo 52 requests 53 rich 54 ]; 55 56 # Project has no tests 57 doCheck = false; 58 59 pythonImportsCheck = [ "surepy" ]; 60 61 meta = with lib; { 62 description = "Python library to interact with the Sure Petcare API"; 63 homepage = "https://github.com/benleb/surepy"; 64 license = with licenses; [ mit ]; 65 maintainers = with maintainers; [ fab ]; 66 }; 67}