nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 70 lines 1.3 kB view raw
1{ 2 buildPythonPackage, 3 fetchPypi, 4 lib, 5 apeye-core, 6 attrs, 7 click, 8 consolekit, 9 docutils, 10 dom-toml, 11 domdf-python-tools, 12 hatchling, 13 hatch-requirements-txt, 14 license-expression, 15 natsort, 16 packaging, 17 readme-renderer, 18 sdjson, 19 shippinglabel, 20 typing-extensions, 21}: 22buildPythonPackage rec { 23 pname = "pyproject-parser"; 24 version = "0.14.0"; 25 pyproject = true; 26 27 src = fetchPypi { 28 pname = "pyproject_parser"; 29 inherit version; 30 hash = "sha256-QEe9miURXkABmeZyzZ2Pi6QF2BSNZadsvzr7z3fpZuI="; 31 }; 32 33 build-system = [ 34 hatchling 35 hatch-requirements-txt 36 ]; 37 38 dependencies = [ 39 apeye-core 40 attrs 41 dom-toml 42 domdf-python-tools 43 license-expression 44 natsort 45 packaging 46 shippinglabel 47 typing-extensions 48 ]; 49 50 optional-dependencies = { 51 all = lib.concatAttrValues (lib.removeAttrs optional-dependencies [ "all" ]); 52 cli = [ 53 click 54 consolekit 55 sdjson 56 ]; 57 readme = [ 58 docutils 59 readme-renderer 60 ] 61 ++ readme-renderer.optional-dependencies.md; 62 }; 63 64 meta = { 65 description = "Parser for pyproject.toml"; 66 homepage = "https://github.com/repo-helper/pyproject-parser"; 67 license = lib.licenses.mit; 68 maintainers = with lib.maintainers; [ tyberius-prime ]; 69 }; 70}