mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +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.
39 lines
707 B
Nix
39 lines
707 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cffi
|
|
, enum34
|
|
, construct
|
|
, pytest
|
|
, hypothesis
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "brotlipy";
|
|
version = "0.7.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "36def0b859beaf21910157b4c33eb3b06d8ce459c942102f16988cca6ea164df";
|
|
};
|
|
|
|
propagatedBuildInputs = [ cffi enum34 construct ];
|
|
|
|
propagatedNativeBuildInputs = [ cffi ];
|
|
|
|
nativeCheckInputs = [ pytest hypothesis ];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
# Missing test files
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Python bindings for the reference Brotli encoder/decoder";
|
|
homepage = "https://github.com/python-hyper/brotlipy/";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|