-
-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a dependency needed for recent sphinxcontrib-openapi.
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchFromGitHub | ||
, flask | ||
, isPy27 | ||
, pytestCheckHook | ||
, pythonAtLeast | ||
, setuptools-scm | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "picobox"; | ||
version = "2.2.0"; | ||
|
||
# currently broken on 3.10 due to https://github.com/ikalnytskyi/picobox/issues/55 | ||
disabled = isPy27 || pythonAtLeast "3.10"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "ikalnytskyi"; | ||
repo = pname; | ||
rev = "refs/tags/${version}"; | ||
hash = "sha256-B2A8GMhBFU/mb/JiiqtP+HvpPj5FYwaYO3gQN2QI6z0="; | ||
}; | ||
|
||
SETUPTOOLS_SCM_PRETEND_VERSION = version; | ||
|
||
nativeBuildInputs = [ | ||
setuptools-scm | ||
]; | ||
|
||
|
||
checkInputs = [ | ||
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters