depot/third_party/nixpkgs/pkgs/development/python-modules/picobox/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

49 lines
846 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, flask
, hatchling
, hatch-vcs
, isPy27
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "picobox";
version = "3.0.0";
format = "pyproject";
disabled = isPy27;
src = fetchFromGitHub {
owner = "ikalnytskyi";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-LQiSurL+eFRJ9iQheoo66o44BlfBtAatk8deuMFROcc=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
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 ];
};
}