Unverified Commit dd5ba982 authored by Daniel Nagy's avatar Daniel Nagy
Browse files

python3Packages.plum-py: 0.4.0 -> 0.8.5

parent 353a64f7
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -2,20 +2,17 @@

buildPythonPackage rec {
  pname = "plum-py";
  version = "0.4.0";
  version = "0.8.5";
  disabled = !isPy3k;

  src = fetchFromGitLab {
    owner = "dangass";
    repo = "plum";
    rev = "6a9ff863c0e9fa21f7b2230d25402155a5522e4b";
    sha256 = "1iv62yb704c61b0dvsmyp3j6xpbmay532g9ny4pw4zbg3l69vd5j";
    rev = version;
    sha256 = "sha256-jCZUNT1HpSr0khHsjnxEzN2LCzcDV6W27PjVkwFJHUg=";
  };

  postPatch = ''
    substituteInPlace src/plum/int/flag/_flag.py \
      --replace 'if sys.version_info < (3, 7):' 'if True:'
  '';
  pythonImportsCheck = [ "plum" ];

  checkInputs = [ pytest baseline ];
  checkPhase = "pytest tests";