1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-22 17:31:04 +03:00
nixpkgs/pkgs/development/python-modules/remarshal/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonApplication
, fetchFromGitHub
# build deps
, poetry-core
# propagates
, cbor2
, python-dateutil
, pyyaml
, tomlkit
, u-msgpack-python
# tested using
, pytestCheckHook
}:
2015-11-16 12:59:30 +01:00
buildPythonApplication rec {
pname = "remarshal";
2020-10-12 04:20:00 +00:00
version = "0.14.0";
format = "pyproject";
2015-11-16 12:59:30 +01:00
src = fetchFromGitHub {
owner = "dbohdan";
repo = pname;
rev = "v${version}";
hash = "sha256:nTM3jrPf0kGE15J+ZXBIt2+NGSW2a6VlZCKj70n5kHM=";
2015-11-16 12:59:30 +01:00
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "poetry.masonry.api" "poetry.core.masonry.api" \
2022-02-11 09:16:45 +10:00
--replace 'PyYAML = "^5.3"' 'PyYAML = "*"' \
--replace 'tomlkit = "^0.7"' 'tomlkit = "*"'
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
cbor2
python-dateutil
pyyaml
tomlkit
u-msgpack-python
];
checkInputs = [
pytestCheckHook
2016-12-30 19:03:47 +08:00
];
2015-11-16 12:59:30 +01:00
meta = with lib; {
2015-11-16 12:59:30 +01:00
description = "Convert between TOML, YAML and JSON";
license = licenses.mit;
homepage = "https://github.com/dbohdan/remarshal";
2015-11-16 12:59:30 +01:00
maintainers = with maintainers; [ offline ];
};
}