1{ lib, buildPythonPackage, fetchPypi, isPy27, pythonAtLeast
2, coverage, nose, pbkdf2 }:
3
4buildPythonPackage rec {
5 pname = "cryptacular";
6 version = "1.6.2";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "7b529cb2b8a3c7e5be77921bf1ebc653d4d3a8f791375cc6f971b20db2404176";
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 lib; {
24 maintainers = with maintainers; [ domenkozar ];
25 };
26}