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 = "3.3.0"; 18 format = "pyproject"; 19 disabled = pythonOlder "3.6"; 20 21 src = fetchFromGitHub { 22 owner = "bachya"; 23 repo = pname; 24 rev = version; 25 sha256 = "1rnq9ybzj2l3699mjyplc29mxla8fayh52x52cnsz21ixlfd9fky"; 26 }; 27 28 nativeBuildInputs = [ 29 poetry-core 30 ]; 31 32 propagatedBuildInputs = [ 33 aiohttp 34 async-timeout 35 attrs 36 pytz 37 ]; 38 39 checkInputs = [ 40 aresponses 41 pytest-asyncio 42 pytestCheckHook 43 ]; 44 45 postPatch = '' 46 substituteInPlace pyproject.toml \ 47 --replace ">=19.3,<21.0" ">=19.3,<22.0" 48 ''; 49 50 # Ignore the examples directory as the files are prefixed with test_ 51 disabledTestPaths = [ "examples/" ]; 52 53 pythonImportsCheck = [ "py17track" ]; 54 55 meta = with lib; { 56 description = "Python library to track package info from 17track.com"; 57 homepage = "https://github.com/bachya/py17track"; 58 license = with licenses; [ mit ]; 59 maintainers = with maintainers; [ fab ]; 60 }; 61}