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