at master 752 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonAtLeast, 6 requests, 7 setuptools, 8 standard-telnetlib, 9}: 10 11buildPythonPackage rec { 12 pname = "pyfnip"; 13 version = "0.2"; 14 pyproject = true; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-arwIsqsj+d6sMatBJc1eEr95Nvg8Y9lfpOtBPcHKomA="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 dependencies = [ 24 requests 25 ] 26 ++ lib.optionals (pythonAtLeast "3.13") [ standard-telnetlib ]; 27 28 # Project has no tests 29 doCheck = false; 30 31 pythonImportsCheck = [ "pyfnip" ]; 32 33 meta = with lib; { 34 description = "Python client to get fido account data"; 35 homepage = "https://github.com/juhaniemi/pyfnip"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}