43 lines
707 B
Nix
Raw Normal View History

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