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
690 B
Nix
27 lines
690 B
Nix
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, six, }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsonstreams";
|
|
version = "0.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dcbaker";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0qw74wz9ngz9wiv89vmilbifsbvgs457yn1bxnzhrh7g4vs2wcav";
|
|
};
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
pytestFlagsArray = [ "tests --doctest-modules jsonstreams" ];
|
|
|
|
meta = with lib; {
|
|
broken = stdenv.isDarwin;
|
|
description = "A JSON streaming writer";
|
|
homepage = "https://github.com/dcbaker/jsonstreams";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ chkno ];
|
|
};
|
|
}
|