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
33 lines
748 B
Nix
33 lines
748 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "crc32c";
|
|
version = "2.7.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ICRAR";
|
|
repo = "crc32c";
|
|
tag = "v${version}";
|
|
hash = "sha256-WBFiAbdzV719vPdZkRGei2+Y33RroMZ7FeQmWo/OfE0=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = {
|
|
description = "Python software implementation and hardware API of CRC32C checksum algorithm";
|
|
homepage = "https://github.com/ICRAR/crc32c";
|
|
changelog = "https://github.com/ICRAR/crc32c/blob/master/CHANGELOG.md";
|
|
license = lib.licenses.lgpl21;
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
};
|
|
}
|