1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 setuptools, 6 setuptools-scm, 7 pytestCheckHook, 8 pythonOlder, 9 requests, 10}: 11 12buildPythonPackage rec { 13 pname = "requests-file"; 14 version = "2.1.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "dashea"; 21 repo = "requests-file"; 22 tag = version; 23 hash = "sha256-JtdtE44yiw2mLMZ0bJv0QiGWb7f8ywPLF7+BUufh/g4="; 24 }; 25 26 build-system = [ 27 setuptools 28 setuptools-scm 29 ]; 30 31 dependencies = [ requests ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 pythonImportsCheck = [ "requests_file" ]; 36 37 meta = with lib; { 38 description = "Transport adapter for fetching file:// URLs with the requests python library"; 39 homepage = "https://github.com/dashea/requests-file"; 40 changelog = "https://github.com/dashea/requests-file/blob/${version}/CHANGES.rst"; 41 license = licenses.asl20; 42 maintainers = [ ]; 43 }; 44}