at master 50 lines 995 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonOlder, 7 requests, 8 requests-mock, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "renson-endura-delta"; 14 version = "1.7.2"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 # github repo is gone 20 src = fetchPypi { 21 pname = "renson_endura_delta"; 22 inherit version; 23 hash = "sha256-bL4faNFh+ocNNspZCXE6/UZ4nH3mKkHSAEvwtN0xfoE="; 24 }; 25 26 postPatch = '' 27 substituteInPlace setup.py \ 28 --replace-fail "'pytest-runner'" "" 29 ''; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ requests ]; 34 35 doCheck = false; # no tests in sdist 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 requests-mock 40 ]; 41 42 pythonImportsCheck = [ "renson_endura_delta" ]; 43 44 meta = with lib; { 45 description = "Module to interact with Renson endura delta"; 46 homepage = "https://github.com/jimmyd-be/Renson-endura-delta-library"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}