depot/third_party/nixpkgs/pkgs/development/python-modules/srsly/default.nix
Default email 2495e3f88b Project import generated by Copybara.
GitOrigin-RevId: 78cd22c1b8604de423546cd49bfe264b786eca13
2022-01-03 17:56:52 +01:00

42 lines
707 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, cython
, catalogue
, mock
, numpy
, pytest
, ruamel-yaml
}:
buildPythonPackage rec {
pname = "srsly";
version = "2.4.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-KrolIpJ2eHUIat9OQ4DiewJNc2VUVveW+OB+s6TfrMA=";
};
nativeBuildInputs = [ cython ];
propagatedBuildInputs = [ catalogue ];
checkInputs = [
mock
numpy
pytest
ruamel-yaml
];
pythonImportsCheck = [ "srsly" ];
meta = with lib; {
description = "Modern high-performance serialization utilities for Python";
homepage = "https://github.com/explosion/srsly";
license = licenses.mit;
};
}