depot/third_party/nixpkgs/pkgs/development/python-modules/pyjson5/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

44 lines
872 B
Nix

{
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 = "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 ];
};
}