nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, typing-extensions
6}:
7
8buildPythonPackage rec {
9 pname = "http-sfv";
10 version = "0.9.6";
11 format = "pyproject";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "mnot";
17 repo = "http_sfv";
18 rev = "http_sfv-${version}";
19 hash = "sha256-S+cbcDx+cXwN2TpfiUpr6xK1GFRxSYgfHdUavfzeyAE=";
20 };
21
22 propagatedBuildInputs = [
23 typing-extensions
24 ];
25
26 # Tests require external data (https://github.com/httpwg/structured-field-tests)
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "http_sfv"
31 ];
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}