depot/third_party/nixpkgs/pkgs/development/python-modules/srsly/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

42 lines
707 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, cython
, catalogue
, mock
, numpy
, pytest
, ruamel-yaml
}:
buildPythonPackage rec {
pname = "srsly";
version = "2.4.4";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-6KBlgWJ7ZxLxnGAkG3wUwrspzobvBPeRN5p58bJJoSg=";
};
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;
};
}