forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#313582 from fabaff/crc16-refactor
python312Packages.crc16: refactor, python312Packages.pyoppleio: refactor
- Loading branch information
Showing
2 changed files
with
34 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,34 @@ | ||
{ lib, buildPythonPackage, fetchPypi }: | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchPypi, | ||
setuptools, | ||
pythonOlder, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "crc16"; | ||
version = "0.1.1"; | ||
format = "setuptools"; | ||
pyproject = true; | ||
|
||
disabled = pythonOlder "3.7"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "15nkx0pa4lskwin84flpk8fsw3jqg6wic6v3s83syjqg76h6my61"; | ||
hash = "sha256-wfhqoDkPS68H0mMbFrl5WA6uHZqXOoJs5FNToi7o05Y="; | ||
}; | ||
|
||
build-system = [ setuptools ]; | ||
|
||
# Tests are outdated | ||
doCheck = false; | ||
|
||
pythonImportsCheck = [ "crc16" ]; | ||
|
||
meta = with lib; { | ||
homepage = "https://code.google.com/archive/p/pycrc16/"; | ||
description = "Python library for calculating CRC16"; | ||
license = licenses.lgpl3; | ||
homepage = "https://code.google.com/archive/p/pycrc16/"; | ||
license = licenses.lgpl3Plus; | ||
maintainers = with maintainers; [ abbradar ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters