2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-05-11 13:29:14 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2020-06-08 18:57:36 +00:00
|
|
|
, cython
|
2021-02-01 13:43:58 +00:00
|
|
|
, catalogue
|
2019-05-11 13:29:14 +00:00
|
|
|
, mock
|
|
|
|
, numpy
|
|
|
|
, pytest
|
2021-05-18 06:58:44 +00:00
|
|
|
, ruamel-yaml
|
2019-05-11 13:29:14 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "srsly";
|
2022-01-02 20:14:02 +00:00
|
|
|
version = "2.4.2";
|
2019-05-11 13:29:14 +00:00
|
|
|
|
2020-06-20 09:08:21 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2019-05-11 13:29:14 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-02 20:14:02 +00:00
|
|
|
hash = "sha256-KrolIpJ2eHUIat9OQ4DiewJNc2VUVveW+OB+s6TfrMA=";
|
2019-05-11 13:29:14 +00:00
|
|
|
};
|
|
|
|
|
2020-06-08 18:57:36 +00:00
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
|
2021-02-01 13:43:58 +00:00
|
|
|
propagatedBuildInputs = [ catalogue ];
|
|
|
|
|
2019-05-11 13:29:14 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
numpy
|
|
|
|
pytest
|
2021-05-18 06:58:44 +00:00
|
|
|
ruamel-yaml
|
2019-05-11 13:29:14 +00:00
|
|
|
];
|
|
|
|
|
2020-06-20 09:08:21 +00:00
|
|
|
pythonImportsCheck = [ "srsly" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-11 13:29:14 +00:00
|
|
|
description = "Modern high-performance serialization utilities for Python";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/explosion/srsly";
|
2019-05-11 13:29:14 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|