1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/pkgs/development/python-modules/cepa/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

33 lines
818 B
Nix

{ lib, buildPythonPackage, fetchPypi, python, mock }:
buildPythonPackage rec {
pname = "cepa";
version = "1.8.4";
src = fetchPypi {
inherit pname version;
hash = "sha256-P7xwGsP8ic1/abxYptDXNbAU+kC2Hiwu/Tge0g21ipY=";
};
postPatch = ''
rm test/unit/installation.py
sed -i "/test.unit.installation/d" test/settings.cfg
# https://github.com/torproject/stem/issues/56
sed -i '/MOCK_VERSION/d' run_tests.py
'';
nativeCheckInputs = [ mock ];
checkPhase = ''
touch .gitignore
${python.interpreter} run_tests.py -u
'';
meta = with lib; {
description = "Controller library that allows applications to interact with Tor";
homepage = "https://github.com/onionshare/cepa";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ lourkeur ];
};
}