mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore: nf-fmt-nix
This commit is contained in:
parent
0947ca0532
commit
fef4f25ca4
8 changed files with 123 additions and 104 deletions
|
|
@ -1,63 +1,69 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, backports-zoneinfo
|
||||
, deprecation
|
||||
, pydantic
|
||||
, requests
|
||||
, responses
|
||||
, pre-commit
|
||||
, isort
|
||||
, vcrpy
|
||||
, pytest
|
||||
, pytest-recording
|
||||
, pytest-mock
|
||||
, pythonOlder
|
||||
# requires an instance of grocy api running...
|
||||
, doCheckGrocy ? false
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
backports-zoneinfo,
|
||||
deprecation,
|
||||
pydantic,
|
||||
requests,
|
||||
responses,
|
||||
pre-commit,
|
||||
isort,
|
||||
vcrpy,
|
||||
pytest,
|
||||
pytest-recording,
|
||||
pytest-mock,
|
||||
pythonOlder,
|
||||
# requires an instance of grocy api running...
|
||||
doCheckGrocy ? false,
|
||||
}: let
|
||||
inherit (lib.lists) optional optionals;
|
||||
inherit (lib.strings) optionalString;
|
||||
in buildPythonPackage rec {
|
||||
pname = "pygrocy";
|
||||
version = "2.1.0";
|
||||
format = "setuptools";
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "pygrocy";
|
||||
version = "2.1.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SebRut";
|
||||
repo = "pygrocy";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-ijwcdWMeBnYPhrNYt/IxucPvzc+0InudLxJSMVwulNw=";
|
||||
};
|
||||
src = fetchFromGitHub {
|
||||
owner = "SebRut";
|
||||
repo = "pygrocy";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-ijwcdWMeBnYPhrNYt/IxucPvzc+0InudLxJSMVwulNw=";
|
||||
};
|
||||
|
||||
postPatch = optionalString (!doCheckGrocy) ''
|
||||
rm test/test_grocy.py
|
||||
'';
|
||||
postPatch = optionalString (!doCheckGrocy) ''
|
||||
rm test/test_grocy.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
deprecation
|
||||
pydantic
|
||||
] ++ optional (pythonOlder "3.9") backports-zoneinfo;
|
||||
propagatedBuildInputs =
|
||||
[
|
||||
requests
|
||||
deprecation
|
||||
pydantic
|
||||
]
|
||||
++ optional (pythonOlder "3.9") backports-zoneinfo;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pygrocy"
|
||||
];
|
||||
pythonImportsCheck = [
|
||||
"pygrocy"
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytest-recording
|
||||
pytest-mock
|
||||
] ++ optionals doCheckGrocy [
|
||||
responses
|
||||
pre-commit
|
||||
isort
|
||||
vcrpy
|
||||
];
|
||||
checkInputs =
|
||||
[
|
||||
pytest
|
||||
pytest-recording
|
||||
pytest-mock
|
||||
]
|
||||
++ optionals doCheckGrocy [
|
||||
responses
|
||||
pre-commit
|
||||
isort
|
||||
vcrpy
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/SebRut/pygrocy";
|
||||
license = lib.licenses.mit;
|
||||
broken = pythonOlder "3.8";
|
||||
};
|
||||
}
|
||||
meta = {
|
||||
homepage = "https://github.com/SebRut/pygrocy";
|
||||
license = lib.licenses.mit;
|
||||
broken = pythonOlder "3.8";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue