nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 typing-extensions,
7}:
8
9buildPythonPackage (finalAttrs: {
10 pname = "http-sf";
11 version = "1.1.1";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "mnot";
16 repo = "http-sf";
17 tag = "v${finalAttrs.version}";
18 hash = "sha256-yR1/X3brPgZhjmssShAaKDmmC3HW7AUByjYue9AcU4k=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ typing-extensions ];
24
25 # Tests require external data (https://github.com/httpwg/structured-field-tests)
26 doCheck = false;
27
28 pythonImportsCheck = [ "http_sf" ];
29
30 meta = {
31 description = "Module to parse and serialise HTTP structured field values";
32 homepage = "https://github.com/mnot/http-sf";
33 changelog = "https://github.com/mnot/http-sf/releases/tag/${finalAttrs.src.tag}";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ fab ];
36 };
37})