Merge pull request #322044 from fabaff/pyloadapi
python312Packages.hatch-regex-commit: init at 0.0.3, python312Packages.pyloadapi: init at 1.2.0
This commit is contained in:
commit
d06d11ac35
@ -0,0 +1,46 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
hatch-regex-commit,
|
||||
hatchling,
|
||||
pythonOlder,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hatch-regex-commit";
|
||||
version = "0.0.3";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "frankie567";
|
||||
repo = "hatch-regex-commit";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-E0DIBBaDmTCsZQ41NcjcbzgJ16BwhdexlrGWBdf77oA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail 'dynamic = ["version"]' 'version = "${version}"' \
|
||||
--replace-fail ', "hatch-regex-commit"' "" \
|
||||
--replace-fail " --cov-report=term-missing --cov-config=pyproject.toml --cov=hatch_regex_commit --cov=tests" ""
|
||||
'';
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [ hatchling ];
|
||||
|
||||
# Module has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "hatch_regex_commit" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Hatch plugin to create a commit and tag when bumping version";
|
||||
homepage = "https://github.com/frankie567/hatch-regex-commit";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
58
pkgs/development/python-modules/pyloadapi/default.nix
Normal file
58
pkgs/development/python-modules/pyloadapi/default.nix
Normal file
@ -0,0 +1,58 @@
|
||||
{
|
||||
lib,
|
||||
aiohttp,
|
||||
aioresponses,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
hatch-regex-commit,
|
||||
hatchling,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
python-dotenv,
|
||||
pythonOlder,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyloadapi";
|
||||
version = "1.2.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tr4nt0r";
|
||||
repo = "pyloadapi";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-uOgqc1RqmEk0Lqz/ixlChKTZva7+0v4V8KutLSgPKEE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "--cov=src/pyloadapi/ --cov-report=term-missing" ""
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
hatch-regex-commit
|
||||
hatchling
|
||||
];
|
||||
|
||||
dependencies = [ aiohttp ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
aioresponses
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
python-dotenv
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyloadapi" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple wrapper for pyLoad's API";
|
||||
homepage = "https://github.com/tr4nt0r/pyloadapi";
|
||||
changelog = "https://github.com/tr4nt0r/pyloadapi/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
|
@ -5372,6 +5372,8 @@ self: super: with self; {
|
||||
|
||||
hatch-nodejs-version = callPackage ../development/python-modules/hatch-nodejs-version { };
|
||||
|
||||
hatch-regex-commit = callPackage ../development/python-modules/hatch-regex-commit { };
|
||||
|
||||
hatch-requirements-txt = callPackage ../development/python-modules/hatch-requirements-txt { };
|
||||
|
||||
haversine = callPackage ../development/python-modules/haversine { };
|
||||
@ -10094,6 +10096,8 @@ self: super: with self; {
|
||||
|
||||
pylddwrap = callPackage ../development/python-modules/pylddwrap { };
|
||||
|
||||
pyloadapi = callPackage ../development/python-modules/pyloadapi { };
|
||||
|
||||
pyngo = callPackage ../development/python-modules/pyngo { };
|
||||
|
||||
pyngrok = callPackage ../development/python-modules/pyngrok { };
|
||||
|
Loading…
Reference in New Issue
Block a user