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
|
2023-01-20 10:41:00 +00:00
|
|
|
, psutil
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
2021-05-20 23:08:51 +00:00
|
|
|
, ruamel-yaml
|
2023-01-20 10:41:00 +00:00
|
|
|
, setuptools
|
|
|
|
, tornado
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "srsly";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "2.4.6";
|
2023-01-20 10:41:00 +00:00
|
|
|
format = "pyproject";
|
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;
|
2023-03-04 12:14:45 +00:00
|
|
|
hash = "sha256-R7QfMjq6TJwzEav2DkQ8A6nv6cafZdxALRc8Mvd0Sm8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
setuptools
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
catalogue
|
|
|
|
];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
mock
|
|
|
|
numpy
|
2023-01-20 10:41:00 +00:00
|
|
|
psutil
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest
|
2021-05-20 23:08:51 +00:00
|
|
|
ruamel-yaml
|
2023-01-20 10:41:00 +00:00
|
|
|
tornado
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"srsly"
|
|
|
|
];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/explosion/srsly/releases/tag/v${version}";
|
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;
|
|
|
|
};
|
|
|
|
}
|