python3Packages.plum-py: init at 0.4.0

This commit is contained in:
David Reiss 2021-03-16 17:02:13 -07:00
parent c58549c140
commit 7799d689ab
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ lib, buildPythonPackage, fetchFromGitLab, isPy3k, pytest, baseline }:
buildPythonPackage rec {
pname = "plum-py";
version = "0.4.0";
disabled = !isPy3k;
src = fetchFromGitLab {
owner = "dangass";
repo = "plum";
rev = "6a9ff863c0e9fa21f7b2230d25402155a5522e4b";
sha256 = "1iv62yb704c61b0dvsmyp3j6xpbmay532g9ny4pw4zbg3l69vd5j";
};
postPatch = ''
substituteInPlace src/plum/int/flag/_flag.py \
--replace 'if sys.version_info < (3, 7):' 'if True:'
'';
checkInputs = [ pytest baseline ];
checkPhase = "pytest tests";
meta = with lib; {
description = "Classes and utilities for packing/unpacking bytes";
homepage = "https://plum-py.readthedocs.io/en/latest/index.html";
license = licenses.mit;
maintainers = with maintainers; [ dnr ];
};
}

View File

@ -5152,6 +5152,8 @@ in {
plugwise = callPackage ../development/python-modules/plugwise { };
plum-py = callPackage ../development/python-modules/plum-py { };
plumbum = callPackage ../development/python-modules/plumbum { };
ply = callPackage ../development/python-modules/ply { };