about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/std-uritemplate/default.nix
blob: e11e26acc2867f1a20ab490bf4a429a6dabfe51b (plain) (blame)
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
, fetchPypi
, poetry-core
, pythonOlder
}:

buildPythonPackage rec {
  pname = "std-uritemplate";
  version = "0.0.54";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    pname = "std_uritemplate";
    inherit version;
    hash = "sha256-FVKnB3v/T7eV6IQkaKQ8CFumIMc3PPlAgNOFNohQf9Q=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  # Module doesn't have unittest, only functional tests
  doCheck = false;

  pythonImportsCheck = [
    "stduritemplate"
  ];

  meta = with lib; {
    description = "Std-uritemplate implementation for Python";
    homepage = "https://github.com/std-uritemplate/std-uritemplate";
    changelog = "https://github.com/std-uritemplate/std-uritemplate/releases/tag/${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ fab ];
  };
}