Unverified Commit da25f94f authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

python312Packages.bindep: 2.12.0 -> 2.13.0 (#395030)

parents 6a8f6223 d95fea4f
Loading
Loading
Loading
Loading
+21 −6
Original line number Diff line number Diff line
@@ -3,27 +3,29 @@
  buildPythonPackage,
  distro,
  fetchPypi,
  fixtures,
  libredirect,
  packaging,
  parsley,
  pbr,
  setuptools,
  pytestCheckHook,
  testtools,
}:

buildPythonPackage rec {
  pname = "bindep";
  version = "2.12.0";
  version = "2.13.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-wGtR5tC6OWWq2PPCXwpXS+D4AboHyxp4SV2olUZ952A=";
    hash = "sha256-33VkdT5YMDO7ETM4FQ13JUAUW00YmkgB7FaiW17eUFA=";
  };

  env.PBR_VERSION = version;

  build-system = [
    pbr
    setuptools
  ];

  dependencies = [
@@ -33,8 +35,21 @@ buildPythonPackage rec {
    distro
  ];

  # Checks moved to 'passthru.tests' to workaround infinite recursion
  doCheck = false;
  nativeCheckInputs = [
    fixtures
    libredirect.hook
    pytestCheckHook
    testtools
  ];

  preCheck = ''
    echo "ID=nixos
    " > os-release
    export NIX_REDIRECTS=/etc/os-release=$(realpath os-release)
    export PATH=$PATH:$out/bin
  '';

  pytestFlagsArray = [ "-s" ];

  pythonImportsCheck = [ "bindep" ];