2022-01-13 20:06:32 +00:00
|
|
|
{ lib
|
2022-10-30 15:09:59 +00:00
|
|
|
, buildPythonPackage
|
2022-01-13 20:06:32 +00:00
|
|
|
, fetchFromGitHub
|
2024-04-21 15:54:59 +00:00
|
|
|
, pythonRelaxDepsHook
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
# build deps
|
|
|
|
, poetry-core
|
|
|
|
|
|
|
|
# propagates
|
2021-09-18 10:52:07 +00:00
|
|
|
, cbor2
|
|
|
|
, python-dateutil
|
|
|
|
, pyyaml
|
|
|
|
, tomlkit
|
|
|
|
, u-msgpack-python
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
# tested using
|
|
|
|
, pytestCheckHook
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "remarshal";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.17.1";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dbohdan";
|
|
|
|
repo = pname;
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-2WxMh5P/8NvElymnMU3JzQU0P4DMXFF6j15OxLaS+VA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"pytest"
|
2022-01-13 20:06:32 +00:00
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-01-13 20:06:32 +00:00
|
|
|
cbor2
|
|
|
|
python-dateutil
|
|
|
|
pyyaml
|
|
|
|
tomlkit
|
|
|
|
u-msgpack-python
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-13 20:06:32 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/remarshal-project/remarshal/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Convert between TOML, YAML and JSON";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/dbohdan/remarshal";
|
|
|
|
maintainers = with maintainers; [ offline ];
|
|
|
|
};
|
|
|
|
}
|