1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4
5# build deps
6, poetry-core
7
8# propagates
9, cbor2
10, python-dateutil
11, pyyaml
12, tomlkit
13, u-msgpack-python
14
15# tested using
16, pytestCheckHook
17}:
18
19buildPythonPackage rec {
20 pname = "remarshal";
21 version = "0.17.1";
22 format = "pyproject";
23
24 src = fetchFromGitHub {
25 owner = "dbohdan";
26 repo = pname;
27 rev = "refs/tags/v${version}";
28 hash = "sha256-2WxMh5P/8NvElymnMU3JzQU0P4DMXFF6j15OxLaS+VA=";
29 };
30
31 nativeBuildInputs = [
32 poetry-core
33 ];
34
35 propagatedBuildInputs = [
36 cbor2
37 python-dateutil
38 pyyaml
39 tomlkit
40 u-msgpack-python
41 ];
42
43 nativeCheckInputs = [
44 pytestCheckHook
45 ];
46
47 meta = with lib; {
48 changelog = "https://github.com/remarshal-project/remarshal/releases/tag/v${version}";
49 description = "Convert between TOML, YAML and JSON";
50 license = licenses.mit;
51 homepage = "https://github.com/dbohdan/remarshal";
52 maintainers = with maintainers; [ offline ];
53 };
54}