python3Packages.srsly: disable on Python older than 3.6

Also add an import check.
This commit is contained in:
Daniël de Kok 2020-06-20 11:08:21 +02:00
parent 34f19a4686
commit e2e115c03c

View File

@ -15,6 +15,8 @@ buildPythonPackage rec {
pname = "srsly"; pname = "srsly";
version = "2.0.1"; version = "2.0.1";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "fa3c7375be8fe75f23c27feafbfb5f738d55ffdbf02964c6896fb7684f519a52"; sha256 = "fa3c7375be8fe75f23c27feafbfb5f738d55ffdbf02964c6896fb7684f519a52";
@ -22,8 +24,6 @@ buildPythonPackage rec {
nativeBuildInputs = [ cython ]; nativeBuildInputs = [ cython ];
propagatedBuildInputs = lib.optional (pythonOlder "3.4") pathlib;
checkInputs = [ checkInputs = [
mock mock
numpy numpy
@ -35,6 +35,8 @@ buildPythonPackage rec {
# Possibly because of sandbox restrictions. # Possibly because of sandbox restrictions.
doCheck = false; doCheck = false;
pythonImportsCheck = [ "srsly" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Modern high-performance serialization utilities for Python"; description = "Modern high-performance serialization utilities for Python";
homepage = "https://github.com/explosion/srsly"; homepage = "https://github.com/explosion/srsly";