Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 83 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ lib, stdenv, attrs, buildPythonPackage, colorama, fetchPypi, glibcLocales, importlib-metadata, pyperclip, pytest-mock, pytestCheckHook, pythonOlder, setuptools-scm, typing-extensions, wcwidth,}:
buildPythonPackage rec { pname = "cmd2"; version = "2.4.3"; format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi { inherit pname version; hash = "sha256-cYc8Efcr0Z4rHbV4IUcW8NT3yPolAJPGASZamnF97lI="; };
LC_ALL = "en_US.UTF-8";
buildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ attrs colorama pyperclip wcwidth ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions importlib-metadata ];
nativeCheckInputs = [ pytestCheckHook glibcLocales pytest-mock ];
disabledTests = [ # Don't require vim for tests, it causes lots of rebuilds "test_find_editor_not_specified" "test_transcript" ];
postPatch = '' sed -i "/--cov/d" setup.cfg '' + lib.optionalString stdenv.hostPlatform.isDarwin '' # Fake the impure dependencies pbpaste and pbcopy mkdir bin echo '#!${stdenv.shell}' > bin/pbpaste echo '#!${stdenv.shell}' > bin/pbcopy chmod +x bin/{pbcopy,pbpaste} export PATH=$(realpath bin):$PATH '';
doCheck = !stdenv.hostPlatform.isDarwin;
pythonImportsCheck = [ "cmd2" ];
meta = with lib; { description = "Enhancements for standard library's cmd module"; homepage = "https://github.com/python-cmd2/cmd2"; changelog = "https://github.com/python-cmd2/cmd2/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ teto ]; };}