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