at master 914 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 setuptools, 7 typing-extensions, 8}: 9 10buildPythonPackage rec { 11 pname = "http-sf"; 12 version = "1.0.4"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.9"; 16 17 src = fetchFromGitHub { 18 owner = "mnot"; 19 repo = "http-sf"; 20 tag = "v${version}"; 21 hash = "sha256-swstFntoox9cafLZ5tj02uFoReIRf+9xGOxHvga+Q5o="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ typing-extensions ]; 27 28 # Tests require external data (https://github.com/httpwg/structured-field-tests) 29 doCheck = false; 30 31 pythonImportsCheck = [ "http_sf" ]; 32 33 meta = with lib; { 34 description = "Module to parse and serialise HTTP structured field values"; 35 homepage = "https://github.com/mnot/http-sf"; 36 changelog = "https://github.com/mnot/http-sf/releases/tag/v${version}"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}