Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
937 B · 48 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pythonOlder, setuptools-scm}:
buildPythonPackage rec { pname = "asteval"; version = "0.9.29"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "newville"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-cJIrb0lo/FmeyZd8L6nlCEt6MP7Fdv3rr5C6xvplN6c="; };
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [ setuptools-scm ];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = '' substituteInPlace setup.cfg \ --replace " --cov=asteval --cov-report xml" "" '';
pythonImportsCheck = [ "asteval" ];
meta = with lib; { description = "AST evaluator of Python expression using ast module"; homepage = "https://github.com/newville/asteval"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };}