Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / confection / default.nix
blob30ed7f3c682eaad0a12fc51ba911184c7b12e50d
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pydantic
5 , pytestCheckHook
6 , pythonOlder
7 , srsly
8 }:
10 buildPythonPackage rec {
11   pname = "confection";
12   version = "0.1.3";
13   format = "setuptools";
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "explosion";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-PJbFv+5bT4+oF7PRAO6AGnjRhjNudiJEkPFgGSmuI8c=";
22   };
24   propagatedBuildInputs = [
25     pydantic
26     srsly
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   pythonImportsCheck = [
34     "confection"
35   ];
37   meta = with lib; {
38     description = "Library that offers a configuration system";
39     homepage = "https://github.com/explosion/confection";
40     changelog  = "https://github.com/explosion/confection/releases/tag/v${version}";
41     license = licenses.mit;
42     maintainers = with maintainers; [ fab ];
43   };