mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-11 14:43:47 +00:00
python310Packages.pytoolconfig: init at 1.2.5
This commit is contained in:
parent
c3374273d7
commit
dd8026d8d5
79
pkgs/development/python-modules/pytoolconfig/default.nix
Normal file
79
pkgs/development/python-modules/pytoolconfig/default.nix
Normal file
@ -0,0 +1,79 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, docutils
|
||||
, fetchFromGitHub
|
||||
, packaging
|
||||
, pdm-pep517
|
||||
, platformdirs
|
||||
, pydantic
|
||||
, pytest-timeout
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, sphinx
|
||||
, tabulate
|
||||
, tomli
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytoolconfig";
|
||||
version = "1.2.5";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bagel897";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-b7er/IgXr2j9dSnI87669BXWA5CXNTzwa1DTpl8PBZ4=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# License file name doesn't match
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "license = { file = 'LGPL-3.0' }" "" \
|
||||
--replace 'dynamic = ["version"]' 'version = "${version}"' \
|
||||
--replace "packaging>=22.0" "packaging"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pdm-pep517
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
packaging
|
||||
] ++ lib.optionals (pythonOlder "3.11") [
|
||||
tomli
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
validation = [
|
||||
pydantic
|
||||
];
|
||||
global = [
|
||||
platformdirs
|
||||
];
|
||||
doc = [
|
||||
sphinx
|
||||
tabulate
|
||||
];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
docutils
|
||||
pytestCheckHook
|
||||
] ++ passthru.optional-dependencies.global
|
||||
++ passthru.optional-dependencies.doc;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pytoolconfig"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module for tool configuration";
|
||||
homepage = "https://github.com/bagel897/pytoolconfig";
|
||||
changelog = "https://github.com/bagel897/pytoolconfig/releases/tag/v${version}";
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -5147,8 +5147,6 @@ self: super: with self; {
|
||||
|
||||
lcov_cobertura = callPackage ../development/python-modules/lcov_cobertura { };
|
||||
|
||||
ld2410-ble = callPackage ../development/python-modules/ld2410-ble { };
|
||||
|
||||
ldap3 = callPackage ../development/python-modules/ldap3 { };
|
||||
|
||||
ldapdomaindump = callPackage ../development/python-modules/ldapdomaindump { };
|
||||
@ -9367,6 +9365,8 @@ self: super: with self; {
|
||||
|
||||
pytomlpp = callPackage ../development/python-modules/pytomlpp { };
|
||||
|
||||
pytoolconfig = callPackage ../development/python-modules/pytoolconfig { };
|
||||
|
||||
pytools = callPackage ../development/python-modules/pytools { };
|
||||
|
||||
pytorch-lightning = callPackage ../development/python-modules/pytorch-lightning { };
|
||||
|
Loading…
Reference in New Issue
Block a user