nixpkgs/pkgs/development/python-modules/picobox/default.nix
Florian Klink d273fa8bb6 python3.pkgs.picobox: 2.2.0 -> 3.0.0
This brings python 3.11 support. Upstream also switched to pyproject and
hatch, which still needs SETUPTOOLS_SCM_PRETEND_VERSION to be set.

New release was reported in https://github.com/ikalnytskyi/picobox/issues/55
2023-04-04 16:45:25 +02:00

50 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 ];
};
}