summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/uri-template/default.nix
blob: ef5af5271c17076e3523234a0ccf10131ea71879 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  python,
  setuptools,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "uri-template";
  version = "1.3.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "plinss";
    repo = "uri_template";
    tag = "v${version}";
    hash = "sha256-38HFFqM6yfpsPrhIpE639ePy/NbLqKw7gbnE3y8sL3w=";
  };

  nativeBuildInputs = [
    setuptools
    setuptools-scm
  ];

  checkPhase = ''
    ${python.interpreter} test.py
  '';

  pythonImportsCheck = [ "uri_template" ];

  meta = {
    description = "Implementation of RFC 6570 URI Templates";
    homepage = "https://github.com/plinss/uri_template/";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}