My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pymarshal/default.nix

52 lines
981 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, bson
, pytestCheckHook
, pyyaml
, setuptools
}:
buildPythonPackage rec {
pname = "pymarshal";
version = "2.2.0";
disabled = pythonOlder "3.0";
src = fetchFromGitHub {
owner = "stargateaudio";
repo = pname;
rev = version;
sha256 = "sha256-Ds8JV2mtLRcKXBvPs84Hdj3MxxqpeV5muKCSlAFCj1A=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'" ""
substituteInPlace setup.cfg \
--replace "--cov=pymarshal --cov-report=html --cov-report=term" ""
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
bson
];
checkInputs = [
pytestCheckHook
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;
};
}