1{ stdenv, buildPythonPackage, fetchPypi, isPy27, pythonAtLeast 2, coverage, nose, pbkdf2 }: 3 4buildPythonPackage rec { 5 pname = "cryptacular"; 6 version = "1.4.1"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "18fl7phl6r9xiwz8f1jpkahkv21wimmiq72gmrqncccv7z806gr7"; 11 }; 12 13 buildInputs = [ coverage nose ]; 14 propagatedBuildInputs = [ pbkdf2 ]; 15 16 # TODO: tests fail: TypeError: object of type 'NoneType' has no len() 17 doCheck = false; 18 19 # Python >=2.7.15, >=3.6.5 are incompatible: 20 # https://bitbucket.org/dholth/cryptacular/issues/11 21 disabled = isPy27 || pythonAtLeast "3.6"; 22 23 meta = with stdenv.lib; { 24 maintainers = with maintainers; [ domenkozar ]; 25 }; 26}