mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 22:30:23 +00:00
58 lines
1.0 KiB
Nix
58 lines
1.0 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 = "1.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dbohdan";
|
|
repo = "remarshal";
|
|
tag = "v${version}";
|
|
hash = "sha256-14vkLX7wKi+AYv2wPeHJ7MhKBKp+GB3oHWqxiPdkQhs=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|