1{ lib 2, aiohttp 3, aresponses 4, async-timeout 5, attrs 6, buildPythonPackage 7, fetchFromGitHub 8, poetry-core 9, pytest-asyncio 10, pytestCheckHook 11, pythonOlder 12, pytz 13}: 14 15buildPythonPackage rec { 16 pname = "py17track"; 17 version = "2021.12.2"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchFromGitHub { 23 owner = "bachya"; 24 repo = pname; 25 rev = version; 26 sha256 = "sha256-T0Jjdu6QC8rTqZwe4cdsBbs0hQXUY6CkrImCgYwWL9o="; 27 }; 28 29 nativeBuildInputs = [ 30 poetry-core 31 ]; 32 33 propagatedBuildInputs = [ 34 aiohttp 35 async-timeout 36 attrs 37 pytz 38 ]; 39 40 checkInputs = [ 41 aresponses 42 pytest-asyncio 43 pytestCheckHook 44 ]; 45 46 postPatch = '' 47 substituteInPlace pyproject.toml \ 48 --replace 'attrs = ">=19.3,<21.0"' 'attrs = ">=19.3,<22.0"' \ 49 --replace 'async-timeout = "^3.0.1"' 'async-timeout = ">=3.0.1,<5.0.0"' 50 ''; 51 52 disabledTestPaths = [ 53 # Ignore the examples directory as the files are prefixed with test_ 54 "examples/" 55 ]; 56 57 pythonImportsCheck = [ 58 "py17track" 59 ]; 60 61 meta = with lib; { 62 description = "Python library to track package info from 17track.com"; 63 homepage = "https://github.com/bachya/py17track"; 64 license = with licenses; [ mit ]; 65 maintainers = with maintainers; [ fab ]; 66 }; 67}