depot/third_party/nixpkgs/pkgs/development/python-modules/remarshal/default.nix

57 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build deps
poetry-core,
# propagates
cbor2,
colorama,
python-dateutil,
pyyaml,
rich-argparse,
ruamel-yaml,
tomlkit,
u-msgpack-python,
# tested using
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "remarshal";
version = "0.20.0";
pyproject = true;
src = fetchFromGitHub {
owner = "dbohdan";
repo = "remarshal";
rev = "refs/tags/v${version}";
hash = "sha256-Fy+K0fM+vjZp8u7C0ElFa1xQM/CIMqFALe42gZRBNOs=";
};
build-system = [ poetry-core ];
dependencies = [
cbor2
colorama
python-dateutil
pyyaml
rich-argparse
ruamel-yaml
tomlkit
u-msgpack-python
];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
changelog = "https://github.com/remarshal-project/remarshal/releases/tag/v${version}";
description = "Convert between TOML, YAML and JSON";
license = licenses.mit;
homepage = "https://github.com/dbohdan/remarshal";
maintainers = with maintainers; [ offline ];
};
}