depot/third_party/nixpkgs/pkgs/development/python-modules/remarshal/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

55 lines
1,017 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# 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
];
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 ];
};
}