1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
libusb1,
|
|
mock,
|
|
ndeflib,
|
|
pydes,
|
|
pyserial,
|
|
pytest-tornasync,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nfcpy";
|
|
version = "1.0.4";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nfcpy";
|
|
repo = "nfcpy";
|
|
tag = "v${version}";
|
|
hash = "sha256-HFWOCiz6ISfxEeC6KPKNKGZoHvFjFGUn7QJWnwvJKYw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
libusb1
|
|
ndeflib
|
|
pydes
|
|
pyserial
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-tornasync
|
|
mock
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "nfc" ];
|
|
|
|
disabledTestPaths = [
|
|
# AttributeError: 'NoneType' object has no attribute 'EC_KEY'
|
|
"tests/test_llcp_llc.py"
|
|
"tests/test_llcp_sec.py"
|
|
# Doesn't work on Hydra
|
|
"tests/test_clf_udp.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "Python module to read/write NFC tags or communicate with another NFC device";
|
|
homepage = "https://github.com/nfcpy/nfcpy";
|
|
changelog = "https://github.com/nfcpy/nfcpy/blob/v${version}/HISTORY.rst";
|
|
license = lib.licenses.eupl11;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|