2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2020-06-15 15:56:04 +00:00
|
|
|
, cython
|
2021-02-13 14:23:35 +00:00
|
|
|
, catalogue
|
2020-04-24 23:36:52 +00:00
|
|
|
, mock
|
|
|
|
, numpy
|
|
|
|
, pytest
|
2021-05-20 23:08:51 +00:00
|
|
|
, ruamel-yaml
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "srsly";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "2.4.3";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-2+kfbdSuqegZSTYoNW3HFb2cYGSGKXu3yldI5uADhBw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
nativeBuildInputs = [ cython ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
propagatedBuildInputs = [ catalogue ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
numpy
|
|
|
|
pytest
|
2021-05-20 23:08:51 +00:00
|
|
|
ruamel-yaml
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
pythonImportsCheck = [ "srsly" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Modern high-performance serialization utilities for Python";
|
|
|
|
homepage = "https://github.com/explosion/srsly";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|