diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2024-05-07 08:42:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 08:42:31 +0200 |
commit | 590489a114f7b8c933e46e032371db4eb5986ad8 (patch) | |
tree | 3e038cf11da932dea846ef75c4ae9e3547aca29f /pkgs/development | |
parent | af1b617529368336eae79a1ab350303a2ee28a71 (diff) | |
parent | 1eb80bce6da68304c08ad444098ce2c974298612 (diff) |
Merge pull request #309649 from fabaff/pyjson5
python312Packages.pyjson5: init at 1.6.6
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/pyjson5/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyjson5/default.nix b/pkgs/development/python-modules/pyjson5/default.nix new file mode 100644 index 0000000000000..19f933ddc3d9a --- /dev/null +++ b/pkgs/development/python-modules/pyjson5/default.nix @@ -0,0 +1,44 @@ +{ + lib, + buildPythonPackage, + cython, + fetchFromGitHub, + pythonOlder, + setuptools, + wheel, +}: + +buildPythonPackage rec { + pname = "pyjson5"; + version = "1.6.6"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "Kijewski"; + repo = "pyjson5"; + rev = "refs/tags/v${version}"; + hash = "sha256-LNcz9JEOw6HO9eIf71w4NJdPOB4yixBfBeD7B/NLbfE="; + fetchSubmodules = true; + }; + + build-system = [ + cython + setuptools + wheel + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ "pyjson5" ]; + + meta = with lib; { + description = "A JSON5 serializer and parser library"; + homepage = "https://github.com/Kijewski/pyjson5"; + changelog = "https://github.com/Kijewski/pyjson5/blob/${version}/CHANGELOG.md"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} |