python3Packages.srsly: disable on Python older than 3.6
Also add an import check.
This commit is contained in:
parent
34f19a4686
commit
e2e115c03c
@ -15,6 +15,8 @@ buildPythonPackage rec {
|
||||
pname = "srsly";
|
||||
version = "2.0.1";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "fa3c7375be8fe75f23c27feafbfb5f738d55ffdbf02964c6896fb7684f519a52";
|
||||
@ -22,8 +24,6 @@ buildPythonPackage rec {
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
|
||||
propagatedBuildInputs = lib.optional (pythonOlder "3.4") pathlib;
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
numpy
|
||||
@ -35,6 +35,8 @@ buildPythonPackage rec {
|
||||
# Possibly because of sandbox restrictions.
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "srsly" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Modern high-performance serialization utilities for Python";
|
||||
homepage = "https://github.com/explosion/srsly";
|
||||
|
Loading…
Reference in New Issue
Block a user