mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 07:23:40 +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.
34 lines
711 B
Nix
34 lines
711 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, numpy
|
|
, pandas
|
|
, pytz
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "json-tricks";
|
|
version = "3.15.5";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mverleg";
|
|
repo = "pyjson_tricks";
|
|
rev = "v${version}";
|
|
sha256 = "wdpqCqMO0EzKyqE4ishL3CTsSw3sZPGvJ0HEktKFgZU=";
|
|
};
|
|
|
|
nativeCheckInputs = [ numpy pandas pytz pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "json_tricks" ];
|
|
|
|
meta = with lib; {
|
|
description = "Extra features for Python JSON handling";
|
|
homepage = "https://github.com/mverleg/pyjson_tricks";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
};
|
|
}
|