mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
49 lines
1023 B
Nix
49 lines
1023 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
logical-unification,
|
|
py,
|
|
pytestCheckHook,
|
|
pytest-html,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cons";
|
|
version = "0.4.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pythological";
|
|
repo = "python-cons";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-XssERKiv4A8x7dZhLeFSciN6RCEfGs0or3PAQiYSPII=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ logical-unification ];
|
|
|
|
nativeCheckInputs = [
|
|
py
|
|
pytestCheckHook
|
|
pytest-html
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"--html=testing-report.html"
|
|
"--self-contained-html"
|
|
];
|
|
|
|
pythonImportsCheck = [ "cons" ];
|
|
|
|
meta = with lib; {
|
|
description = "Implementation of Lisp/Scheme-like cons in Python";
|
|
homepage = "https://github.com/pythological/python-cons";
|
|
changelog = "https://github.com/pythological/python-cons/releases/tag/v${version}";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ Etjean ];
|
|
};
|
|
}
|