blob: 708e0acc53248324f9d94f7bd51196f4f996b519 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
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 ];
};
}
|