depot/third_party/nixpkgs/pkgs/development/python-modules/confection/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

44 lines
868 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pydantic
, pytestCheckHook
, pythonOlder
, srsly
}:
buildPythonPackage rec {
pname = "confection";
version = "0.1.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "explosion";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-OpUMx8hcTnBdaATzRXBICwF6eAGsdyA0jFvX4nVBiM4=";
};
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 ];
};
}