depot/third_party/nixpkgs/pkgs/development/python-modules/remarshal/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

57 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonRelaxDepsHook,
# build deps
poetry-core,
# propagates
cbor2,
python-dateutil,
pyyaml,
tomlkit,
u-msgpack-python,
# tested using
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "remarshal";
version = "0.17.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "dbohdan";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-2WxMh5P/8NvElymnMU3JzQU0P4DMXFF6j15OxLaS+VA=";
};
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [ "pytest" ];
propagatedBuildInputs = [
cbor2
python-dateutil
pyyaml
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 ];
};
}