croc: 10.1.1 -> 10.1.3 (#364662)
[NixPkgs.git] / pkgs / development / python-modules / http-sf / default.nix
blobd5695b9699f50a14143d3c50c40025b08ff5d501
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   setuptools,
7   typing-extensions,
8 }:
10 buildPythonPackage rec {
11   pname = "http-sf";
12   version = "1.0.2";
13   pyproject = true;
15   disabled = pythonOlder "3.9";
17   src = fetchFromGitHub {
18     owner = "mnot";
19     repo = "http-sf";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-p2GTCvuRhQVchFiLzoDYop9TUz/DT7eVY6Zioh+/rE8=";
22   };
24   build-system = [ setuptools ];
26   dependencies = [ typing-extensions ];
28   # Tests require external data (https://github.com/httpwg/structured-field-tests)
29   doCheck = false;
31   pythonImportsCheck = [ "http_sf" ];
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   };