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