depot/third_party/nixpkgs/pkgs/development/python-modules/remarshal/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

54 lines
960 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.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "dbohdan";
repo = pname;
rev = "v${version}";
hash = "sha256-FytVq9p7Yo0lS5rHj0crPIpHFjxolW8esSPkj2wLfaI=";
};
nativeBuildInputs = [
poetry-core
];
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 ];
};
}