Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, httpx 6, pyspnego 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "httpx-ntlm"; 12 version = "1.1.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 pname = "httpx_ntlm"; 19 inherit version; 20 hash = "sha256-a1a5laZ4tNOtpVDFCK1t2IXWbyJytZMhuad2JtmA52I="; 21 }; 22 23 patches = [ 24 # Update version specifiers, https://github.com/ulodciv/httpx-ntlm/pull/15 25 (fetchpatch { 26 name = "update-version-specifiers.patch"; 27 url = "https://github.com/ulodciv/httpx-ntlm/commit/dac67a957c5c23df29d4790ddbc7cc4bccfc0e35.patch"; 28 hash = "sha256-YtgRrgGG/x7jvNg+NuQIrkOUdyD6Bk53fRaiXBwiV+o="; 29 }) 30 ]; 31 32 propagatedBuildInputs = [ 33 httpx 34 pyspnego 35 ]; 36 37 # https://github.com/ulodciv/httpx-ntlm/issues/5 38 doCheck = false; 39 40 pythonImportsCheck = [ 41 "httpx_ntlm" 42 ]; 43 44 meta = with lib; { 45 description = "NTLM authentication support for HTTPX"; 46 homepage = "https://github.com/ulodciv/httpx-ntlm"; 47 license = licenses.isc; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}