1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, setuptools 6, typing-extensions 7}: 8 9buildPythonPackage rec { 10 pname = "http-sfv"; 11 version = "0.9.8"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "mnot"; 18 repo = "http_sfv"; 19 rev = "http_sfv-${version}"; 20 hash = "sha256-zl0Rk4QbzCVmYZ6TnVq+C+oe27Imz5fEQY9Fco5lo5s="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools 25 ]; 26 27 propagatedBuildInputs = [ 28 typing-extensions 29 ]; 30 31 # Tests require external data (https://github.com/httpwg/structured-field-tests) 32 doCheck = false; 33 34 pythonImportsCheck = [ 35 "http_sfv" 36 ]; 37 38 meta = with lib; { 39 description = "Module to parse and serialise HTTP structured field values"; 40 homepage = "https://github.com/mnot/http_sfv"; 41 license = licenses.asl20; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}