Commit f0a25526 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python310Packages.us: add format

- disable on unsupported Python releases
parent f5110873
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -7,19 +7,26 @@
buildPythonPackage rec {
  pname = "us";
  version = "3.1.1";
  format = "setuptools";

  propagatedBuildInputs = [ jellyfish ];
  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-40eWPo0kocp0N69EP6aFkXdoR7UMhlDY7w61NILnBcI=";
    hash = "sha256-40eWPo0kocp0N69EP6aFkXdoR7UMhlDY7w61NILnBcI=";
  };

  # Upstream requires jellyfish==0.5.6 but we have 0.6.1
  # Upstream spins jellyfish
  postPatch = ''
    substituteInPlace setup.py --replace "jellyfish==" "jellyfish>="
    substituteInPlace setup.py \
      --replace "jellyfish==" "jellyfish>="
  '';

  propagatedBuildInputs = [
    jellyfish
  ];


  doCheck = false; # pypi version doesn't include tests

  meta = {