mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
python312Packages.crc16: refactor
This commit is contained in:
parent
d484aa8e20
commit
49e67fc13b
|
@ -1,19 +1,37 @@
|
|||
{ 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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue