Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 846 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fetchpatch 5, flask 6, hatchling 7, hatch-vcs 8, isPy27 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "picobox"; 14 version = "3.0.0"; 15 16 format = "pyproject"; 17 18 disabled = isPy27; 19 20 src = fetchFromGitHub { 21 owner = "ikalnytskyi"; 22 repo = pname; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-LQiSurL+eFRJ9iQheoo66o44BlfBtAatk8deuMFROcc="; 25 }; 26 27 SETUPTOOLS_SCM_PRETEND_VERSION = version; 28 29 nativeBuildInputs = [ 30 hatchling 31 hatch-vcs 32 ]; 33 34 nativeCheckInputs = [ 35 flask 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "picobox" 41 ]; 42 43 meta = with lib; { 44 description = "Opinionated dependency injection framework"; 45 homepage = "https://github.com/ikalnytskyi/picobox"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ flokli ]; 48 }; 49}