nixpkgs/pkgs/development/python-modules/srsly/default.nix

43 lines
707 B
Nix
Raw Normal View History

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