Commit 726f43db authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

python312Packages.attrs-strict: use `fetchFromGitHub` instead of `fetchPypi`

parent 47803ebc
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchFromGitHub,
  attrs,
  setuptools,
  setuptools-scm,
  pytestCheckHook,
}:

buildPythonPackage rec {
@@ -12,10 +13,11 @@ buildPythonPackage rec {
  version = "1.0.1";
  pyproject = true;

  src = fetchPypi {
    inherit version;
    pname = "attrs_strict";
    hash = "sha256-5wSGNiAUbF8qi2Ac1FdNFIkT2yb8Bjb5Qf5CEuQl6v4=";
  src = fetchFromGitHub {
    owner = "bloomberg";
    repo = "attrs-strict";
    tag = version;
    hash = "sha256-dDOD4Y57E+i8D0S4q+C6t7zjBTsS8q2UFiS22Dsp0Z8=";
  };

  build-system = [
@@ -29,8 +31,9 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "attrs_strict" ];

  # No tests in the pypi archive
  doCheck = false;
  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/bloomberg/attrs-strict/releases/tag/${version}";