Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 99 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
# build, pdm-pep517
# docs, docutils, sphinxHook, sphinx-rtd-theme, sphinx-autodoc-typehints
# runtime, tomli, packaging
# optionals, pydantic, platformdirs, sphinx, tabulate
# tests, pytestCheckHook}:
buildPythonPackage rec { pname = "pytoolconfig"; version = "1.2.5"; format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "bagel897"; repo = "pytoolconfig"; rev = "refs/tags/v${version}"; hash = "sha256-b7er/IgXr2j9dSnI87669BXWA5CXNTzwa1DTpl8PBZ4="; };
outputs = [ "out" "doc" ];
PDM_PEP517_SCM_VERSION = version;
nativeBuildInputs = [ pdm-pep517
# docs docutils sphinx-autodoc-typehints sphinx-rtd-theme sphinxHook ] ++ passthru.optional-dependencies.doc;
postPatch = '' substituteInPlace pyproject.toml \ --replace "packaging>=22.0" "packaging" '';
propagatedBuildInputs = [ packaging ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
passthru.optional-dependencies = { validation = [ pydantic ]; global = [ platformdirs ]; doc = [ sphinx tabulate ]; };
pythonImportsCheck = [ "pytoolconfig" ];
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
meta = with lib; { changelog = "https://github.com/bagel897/pytoolconfig/releases/tag/v${version}"; description = "Python tool configuration"; homepage = "https://github.com/bagel897/pytoolconfig"; license = licenses.lgpl3Plus; maintainers = with maintainers; [ fab hexa ]; };}