mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
54 lines
1010 B
Nix
54 lines
1010 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, bson
|
|
, pytestCheckHook
|
|
, pyyaml
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymarshal";
|
|
version = "2.2.0";
|
|
format = "setuptools";
|
|
disabled = pythonOlder "3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stargateaudio";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "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
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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;
|
|
};
|
|
}
|