1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

pythonPackages.pymystem3: skip tests py2

This commit is contained in:
Jonathan Ringer 2020-08-15 16:20:32 -07:00
parent 0cde253727
commit dd235efed0
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0

View file

@ -1,6 +1,7 @@
{ lib
, fetchPypi
, buildPythonPackage
, isPy3k
, requests
, flake8
, mock
@ -19,6 +20,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ requests ];
checkInputs = [ flake8 mock pytest ];
doCheck = isPy3k; # fails on linting
postPatch = ''
sed -i 's#^_mystem_info = .*#_mystem_info = ["${mystem}/bin", "${mystem}/bin/mystem"]#' pymystem3/constants.py