summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/confection/default.nix
blob: c3950d749d17c2f78e0f31abbf06ecf5eeea5d3e (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pydantic,
  pytestCheckHook,
  srsly,
}:

buildPythonPackage rec {
  pname = "confection";
  version = "0.1.5";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "explosion";
    repo = "confection";
    tag = "v${version}";
    hash = "sha256-1XIo9Hg4whYS1AkFeX8nVnpv+IvnpmyydHYdVYS0xZc=";
  };

  propagatedBuildInputs = [
    pydantic
    srsly
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "confection" ];

  meta = {
    description = "Library that offers a configuration system";
    homepage = "https://github.com/explosion/confection";
    changelog = "https://github.com/explosion/confection/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}