nixpkgs/pkgs/development/python-modules/dodgy/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

41 lines
761 B
Nix

{ buildPythonPackage
, fetchFromGitHub
, isPy3k
, lib
# pythonPackages
, mock
, nose
}:
buildPythonPackage rec {
pname = "dodgy";
version = "0.2.1";
format = "setuptools";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "landscapeio";
repo = pname;
rev = version;
sha256 = "0ywwjpz0p6ls3hp1lndjr9ql6s5lkj7dgpll1h87w04kwan70j0x";
};
nativeCheckInputs = [
mock
nose
];
checkPhase = ''
nosetests tests/test_checks.py
'';
meta = with lib; {
description = "Looks at Python code to search for things which look \"dodgy\" such as passwords or diffs";
homepage = "https://github.com/landscapeio/dodgy";
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
};
}