about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/typed-settings/default.nix
blob: 9791c2b04688fa779256aec3ba8690b2646104ed (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
40
41
{ lib
, buildPythonPackage
, fetchPypi
, setuptoolsBuildHook
, attrs
, toml
, pytestCheckHook
, click
}:

buildPythonPackage rec {
  pname = "typed-settings";
  version = "0.9.2";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    sha256 = "203c1c6ec73dd1eb0fecd4981b31f8e05042f0dda16443190ac9ade1113ff53d";
  };

  nativeBuildInputs = [
    setuptoolsBuildHook
    pytestCheckHook
  ];

  propagatedBuildInputs = [
    attrs
    toml
  ];

  checkInputs = [
    click
  ];

  meta = {
    description = "Typed settings based on attrs classes";
    homepage = "https://gitlab.com/sscherfke/typed-settings";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fridh ];
  };
}