mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
27 lines
677 B
Nix
27 lines
677 B
Nix
{ lib, buildPythonPackage, fetchFromGitLab, isPy3k, pytest, baseline }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "plum-py";
|
|
version = "0.8.5";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "dangass";
|
|
repo = "plum";
|
|
rev = version;
|
|
sha256 = "sha256-jCZUNT1HpSr0khHsjnxEzN2LCzcDV6W27PjVkwFJHUg=";
|
|
};
|
|
|
|
pythonImportsCheck = [ "plum" ];
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|