nixpkgs/pkgs/development/python-modules/jsonlines/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

42 lines
758 B
Nix

{ lib
, attrs
, fetchFromGitHub
, buildPythonPackage
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "jsonlines";
version = "3.1.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "wbolster";
repo = pname;
rev = version;
hash = "sha256-eMpUk5s49OyD+cNGdAeKA2LvpXdKta2QjZIFDnIBKC8=";
};
propagatedBuildInputs = [
attrs
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"jsonlines"
];
meta = with lib; {
description = "Python library to simplify working with jsonlines and ndjson data";
homepage = "https://github.com/wbolster/jsonlines";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}