This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
34 lines
748 B
Nix
34 lines
748 B
Nix
{
|
|
buildPythonPackage,
|
|
cachetools,
|
|
fetchFromGitHub,
|
|
isPy27,
|
|
lib,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "coapthon3";
|
|
version = "1.0.2";
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Tanganelli";
|
|
repo = "CoAPthon3";
|
|
rev = version;
|
|
hash = "sha256-9QApoPUu3XFZY/lgjAsf5r2StFiRtUd1UXWDrzYUh6w=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ cachetools ];
|
|
|
|
# tests take in the order of 10 minutes to execute and sometimes hang forever on tear-down
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "coapthon" ];
|
|
|
|
meta = with lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "Python3 library to the CoAP protocol compliant with the RFC";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ urbas ];
|
|
};
|
|
}
|