2021-04-12 18:23:04 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitLab, isPy3k, pytest, baseline }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "plum-py";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "0.8.5";
|
2021-04-12 18:23:04 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "dangass";
|
|
|
|
repo = "plum";
|
2022-12-02 08:20:57 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-jCZUNT1HpSr0khHsjnxEzN2LCzcDV6W27PjVkwFJHUg=";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
pythonImportsCheck = [ "plum" ];
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|