nixpkgs/pkgs/development/python-modules/expects/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

30 lines
746 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "expects";
version = "0.9.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "jaimegildesagredo";
repo = pname;
rev = "v${version}";
sha256 = "0mk1mhh8n9ly820krkhazn1w96f10vmgh21y2wr44sn8vwr4ngyy";
};
# mamba is used as test runner. Not available and should not be used as
# it's just another unmaintained test runner.
doCheck = false;
pythonImportsCheck = [ "expects" ];
meta = with lib; {
description = "Expressive and extensible TDD/BDD assertion library for Python";
homepage = "https://expects.readthedocs.io/";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}