at 24.11-pre 51 lines 967 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools-scm, 6 requests, 7 tqdm, 8 nose, 9 vcrpy, 10 pytestCheckHook, 11 pythonOlder, 12}: 13 14buildPythonPackage rec { 15 pname = "habanero"; 16 version = "1.2.6"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "sckott"; 23 repo = pname; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-Pw0TgXxDRmR565hdNGipfDZ7P32pxWkmPWfaYK0RaI4="; 26 }; 27 28 nativeBuildInputs = [ setuptools-scm ]; 29 30 propagatedBuildInputs = [ 31 requests 32 tqdm 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 vcrpy 38 ]; 39 40 pythonImportsCheck = [ "habanero" ]; 41 42 # almost the entirety of the test suite makes network calls 43 pytestFlagsArray = [ "test/test-filters.py" ]; 44 45 meta = with lib; { 46 description = "Python interface to Library Genesis"; 47 homepage = "https://habanero.readthedocs.io/"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ nico202 ]; 50 }; 51}