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
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "can-isotp";
|
|
version = "2.0.7";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pylessard";
|
|
repo = "python-can-isotp";
|
|
tag = "v${version}";
|
|
hash = "sha256-Gts6eeeto++DKnkojFvCwyPVPRSq2OcTA0jAYrPAWJI=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTestPaths = [
|
|
# we don't support socket tests
|
|
"test/test_can_stack.py"
|
|
"test/test_layer_vs_socket.py"
|
|
"test/test_socket.py"
|
|
|
|
# behaves inconsistently due to timing
|
|
"test/test_transport_layer.py"
|
|
"test/test_helper_classes.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "isotp" ];
|
|
|
|
meta = {
|
|
description = "Python package that provides support for ISO-TP (ISO-15765) protocol";
|
|
homepage = "https://github.com/pylessard/python-can-isotp";
|
|
changelog = "https://github.com/pylessard/python-can-isotp/releases/tag/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
jacobkoziej
|
|
];
|
|
};
|
|
}
|