python312Packages.pyjson5: init at 1.6.6

A JSON5 serializer and parser library

https://github.com/Kijewski/pyjson5
This commit is contained in:
Fabian Affolter 2024-05-06 22:50:54 +02:00
parent 72a42d2732
commit 22cdfcbe54
3 changed files with 45 additions and 1 deletions

View file

@ -0,0 +1,43 @@
{ 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 ];
};
}

View file

@ -343,7 +343,6 @@ mapAliases ({
pyialarmxr = pyialarmxr-homeassistant; # added 2022-06-07
pyialarmxr-homeassistant = throw "The package was removed together with the component support in home-assistant 2022.7.0"; # added 2022-07-07
PyICU = pyicu; # Added 2022-12-22
pyjson5 = json5; # added 2022-08-28
pyhs100 = throw "pyhs100 has been removed in favor of python-kasa."; # added 2024-01-05
pylibgen = throw "pylibgen is unmaintained upstreamed, and removed from nixpkgs"; # added 2020-06-20
PyLD = pyld; # added 2022-06-22

View file

@ -11134,6 +11134,8 @@ self: super: with self; {
pyjnius = callPackage ../development/python-modules/pyjnius { };
pyjson5 = callPackage ../development/python-modules/pyjson5 { };
pyjsparser = callPackage ../development/python-modules/pyjsparser { };
pyjwkest = callPackage ../development/python-modules/pyjwkest { };