python.pkgs.btrfs: 11 -> 12

and switch to fetchFromGithub as it's not published on pypi
This commit is contained in:
Evils 2021-04-17 23:09:59 +02:00
parent 1fe6ed37fd
commit 0e431818ca

View file

@ -1,17 +1,23 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "btrfs";
version = "11";
version = "12";
src = fetchPypi {
inherit pname version;
sha256 = "1w92sj47wy53ygz725xr613k32pk5khi0g9lrpp6img871241hrx";
src = fetchFromGitHub {
owner = "knorrie";
repo = "python-btrfs";
rev = "v${version}";
sha256 = "sha256-ZQSp+pbHABgBTrCwC2YsUUXAf/StP4ny7MEhBgCRqgE=";
};
# no tests (in v12)
doCheck = false;
pythonImportsCheck = [ "btrfs" ];
meta = with lib; {
description = "Inspect btrfs filesystems";
homepage = "https://github.com/knorrie/python-btrfs";