nixpkgs/pkgs/development/python-modules/objprint/default.nix
2024-11-09 10:17:21 +01:00

35 lines
814 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "objprint";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "gaogaotiantian";
repo = "objprint";
rev = "refs/tags/${version}";
hash = "sha256-+OS034bikrKy4F27b6ic97fHTW6rSMxQ0dx4caF6cUM=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "objprint" ];
meta = {
description = "Library that can print Python objects in human readable format";
homepage = "https://github.com/gaogaotiantian/objprint";
changelog = "https://github.com/gaogaotiantian/objprint/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ drupol ];
};
}