nixpkgs/pkgs/development/python-modules/py-ubjson/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
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.
2023-01-21 12:00:00 +00:00

33 lines
683 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "py-ubjson";
version = "0.16.1";
src = fetchFromGitHub {
owner = "Iotic-Labs";
repo = pname;
rev = "v${version}";
sha256 = "1frn97xfa88zrfmpnvdk1pc03yihlchhph99bhjayvzlfcrhm5v3";
};
nativeCheckInputs = [
pytestCheckHook
];
pytestFlagsArray = [ "test/test.py" ];
pythonImportsCheck = [ "ubjson" ];
meta = with lib; {
description = "Universal Binary JSON draft-12 serializer for Python";
homepage = "https://github.com/Iotic-Labs/py-ubjson";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}