3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/srsly/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

57 lines
904 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, cython
, catalogue
, mock
, numpy
, psutil
, pytest
, ruamel-yaml
, setuptools
, tornado
}:
buildPythonPackage rec {
pname = "srsly";
version = "2.4.5";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-yEIliWe6pSfOqTZ5huQrgUOhqJDn1KGNJaNu3Dx6M8c=";
};
nativeBuildInputs = [
cython
setuptools
];
propagatedBuildInputs = [
catalogue
];
nativeCheckInputs = [
mock
numpy
psutil
pytest
ruamel-yaml
tornado
];
pythonImportsCheck = [
"srsly"
];
meta = with lib; {
changelog = "https://github.com/explosion/srsly/releases/tag/v${version}";
description = "Modern high-performance serialization utilities for Python";
homepage = "https://github.com/explosion/srsly";
license = licenses.mit;
};
}