depot/third_party/nixpkgs/pkgs/development/python-modules/srsly/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

56 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.6";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-R7QfMjq6TJwzEav2DkQ8A6nv6cafZdxALRc8Mvd0Sm8=";
};
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;
};
}