depot/third_party/nixpkgs/pkgs/development/python-modules/picobox/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

45 lines
804 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flask,
hatchling,
hatch-vcs,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "picobox";
version = "4.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ikalnytskyi";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-JtrwUVo3b4G34OUShX4eJS2IVubl4vBmEtB/Jhk4eJI=";
};
nativeBuildInputs = [
hatchling
hatch-vcs
];
nativeCheckInputs = [
flask
pytestCheckHook
];
pythonImportsCheck = [ "picobox" ];
meta = with lib; {
description = "Opinionated dependency injection framework";
homepage = "https://github.com/ikalnytskyi/picobox";
license = licenses.mit;
maintainers = with maintainers; [ flokli ];
};
}