Files
nixpkgs/pkgs/development/python-modules/expects/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

31 lines
753 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
}:
buildPythonPackage rec {
pname = "expects";
version = "0.9.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "jaimegildesagredo";
repo = "expects";
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 = {
description = "Expressive and extensible TDD/BDD assertion library for Python";
homepage = "https://expects.readthedocs.io/";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}