depot/third_party/nixpkgs/pkgs/development/python-modules/confection/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

44 lines
868 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pydantic
, pytestCheckHook
, pythonOlder
, srsly
}:
buildPythonPackage rec {
pname = "confection";
version = "0.1.4";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "explosion";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-PWtxLcnPd7V4yeHfOl1kYPr5UeqkYCfzGE/DoL94tq0=";
};
propagatedBuildInputs = [
pydantic
srsly
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"confection"
];
meta = with lib; {
description = "Library that offers a configuration system";
homepage = "https://github.com/explosion/confection";
changelog = "https://github.com/explosion/confection/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}