depot/third_party/nixpkgs/pkgs/development/python-modules/pymarshal/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

48 lines
879 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
bson,
pytestCheckHook,
pytest-cov-stub,
pyyaml,
setuptools,
}:
buildPythonPackage rec {
pname = "pymarshal";
version = "2.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "stargateaudio";
repo = pname;
rev = version;
hash = "sha256-Ds8JV2mtLRcKXBvPs84Hdj3MxxqpeV5muKCSlAFCj1A=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "'pytest-runner'" ""
'';
build-system = [ setuptools ];
dependencies = [ bson ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
bson
pyyaml
];
pytestFlagsArray = [ "test" ];
meta = {
description = "Python data serialization library";
homepage = "https://github.com/stargateaudio/pymarshal";
maintainers = with lib.maintainers; [ yuu ];
license = lib.licenses.bsd2;
};
}