nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 58 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 libusb1, 6 mock, 7 ndeflib, 8 pydes, 9 pyserial, 10 pytest-tornasync, 11 pytest-mock, 12 pytestCheckHook, 13}: 14 15buildPythonPackage rec { 16 pname = "nfcpy"; 17 version = "1.0.4"; 18 format = "setuptools"; 19 20 src = fetchFromGitHub { 21 owner = "nfcpy"; 22 repo = "nfcpy"; 23 tag = "v${version}"; 24 hash = "sha256-HFWOCiz6ISfxEeC6KPKNKGZoHvFjFGUn7QJWnwvJKYw="; 25 }; 26 27 propagatedBuildInputs = [ 28 libusb1 29 ndeflib 30 pydes 31 pyserial 32 ]; 33 34 nativeCheckInputs = [ 35 pytest-tornasync 36 mock 37 pytest-mock 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ "nfc" ]; 42 43 disabledTestPaths = [ 44 # AttributeError: 'NoneType' object has no attribute 'EC_KEY' 45 "tests/test_llcp_llc.py" 46 "tests/test_llcp_sec.py" 47 # Doesn't work on Hydra 48 "tests/test_clf_udp.py" 49 ]; 50 51 meta = { 52 description = "Python module to read/write NFC tags or communicate with another NFC device"; 53 homepage = "https://github.com/nfcpy/nfcpy"; 54 changelog = "https://github.com/nfcpy/nfcpy/blob/v${version}/HISTORY.rst"; 55 license = lib.licenses.eupl11; 56 maintainers = with lib.maintainers; [ fab ]; 57 }; 58}